Hello Experts!
I have been having a terrible time trying to figure this out, so any help is EXTREMELY appreciated!
Here's the problem:
I am designing an Access Project with Access 2000 on an XP sp1 workstation connected to an SQL Server 2000 sp3. In my project I have several reports, all of which get their data through stored procedures. The one report in question has 4 subreports that each have a different stored procedure. Each of those SP's require a parameter, but the parameter is the same for all...
EXAMPLE:
rptMAIN.recordsource = Report_QuarterBudget '1st Quarter'
rptSub1.recordsource = Report_QLocationBudget '1st Quarter'
rptSub2.recordsource = Report_QLocationWedge '1st Quarter'
rptSub3.recordsource = Report_QLocationBudgetSumm
ary '1st Quarter'
rptSub4.recordsource = Report_QLocationWedgeSumma
ry '1st Quarter'
I have a form, frmMenuReports, that has a list box populated with the names of all available reports. When the user chooses the report s/he wants to run, s/he clicks the item in the list box which then opens an option to run that report as a total of all quarters, or by specific quarter. If the user chooses '1st Quarter', I need to pass that string value to rptMain and all it's subs as the parameter for each SP. When I run the report from the database window, without using my frmMenuReports, a dialog appears asking me for the parameter. I enter '1st Quarter' and it runs just fine, except that it asks me for the paramater for each SP that is being executed and then a couple more. Actually, it asks me for the parameter 9 times before the report actually prints, but it ends up printing correctly. I really need to be able to drive this report from a menu without having the user type out '1st Quarter' and I cannot figure out how to pass the ONE PARAMETER to the five SP's....
Please let me know if I need to clarify any further, and thanks in advance!!
Dave Savittiere