Click to See Complete Forum and Search --> : how to create report from multiple tables
mrumar99
May 25th, 2005, 07:38 AM
hi all,
i want to create report from 4 to 5 tables by providing one value
through which i move from one table to other.
how that is possible . can any body help me .
looking for reply
good bye
umar
Madhi
May 27th, 2005, 12:38 AM
When creating the report, add all the required tables and field and link them by common column
mrumar99
May 27th, 2005, 12:49 AM
hi
thanks for reply but i want to create report via code by providing
one value at run time and clicking button to generate report.
Thanking u for ur help
good bye
umar
kameswararao
June 1st, 2005, 05:43 AM
hi
try like this
Dim cr As New SaleBalanceReport
da = New SqlDataAdapter("select s.*, d.* from saleorder s, dispatchdetails d where d.Sale_note_no=s.saleorderno and s.saleorderno='" & txtsalenote.Text & "'", con)
da.Fill(ds, "salebalance")
cr.SetDataSource(ds.Tables(0))
SBRViewer1.ReportSource = cr
SBRViewer1.Refresh()
ds.Clear()
happy programming
kameswararao
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.