bebitzaa
September 22nd, 2006, 03:23 AM
How can i make multiple reports.
I need to do like 30 reports, and not to make the form for every report, i wan't only to make the reports, and to use the same form.
zeeshangodil
September 23rd, 2006, 08:40 AM
his,
well,
as i understand ur question, u want to do print or preview 30 differenct reports from the same form.
i.e. in vb or whatever language u use?
right?
well if right,, then u should have asked ur question in VISUAL BASIC forum or urs desired language forum.
anyhow.
just design your reports..
and create a form.. with the paremeters uses in that 30 reports.
i.e. From Date, Upto Date etc..
and then declare a variable ReportType as string,..
then assign the value of ReportType before showing Form i.e.
if clicked on Sales Report Menu
ReportType = "SalesReport"
frmPrint.show
if clicked on Production Report Menu
ReportType = "ProductionReport
frmPrint.show
then..
on preview button..
code this
if ReportType= "SalesReport"
'what ever you want to print
else
if reporttype = "ProductionReport"
'wat ever u want to print..
end if
end if
may be this will help you ..aur may be i understand wrongly. wat u need to do..