thank you very much for your help
i'll try that
thank you again
--- In visualbasic6programming%40yahoogroups.com">visualbasic6programming
yahoogroups.com, "abhijit_dutta2003"
<abhijit_dutta2003
...> wrote:
>
> I did not go through all your code, as it is very difficult to
> comprehend these without the forms. But as far as I have understood,
> your problem can be solved by using Public variables. You can use a
> single form for loading all the reports. You can keep a public
> variable named say ReportFile that you can use to load the selected
> report. So if user wants say the SalesReport, you will set
> FrmReport.ReportFile="SalesReport". While loading the report, you can
> do something like Set Report = Appl.OpenReport( App.Path & "" &
> ReportFile & ".rpt" ) to load the reports. For the parameters also you
> can do the same, provided they are of same type. Also, you can get
> both parameters on the same form.
>
.