Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Other Forums
 MS Access
 passing parameter to sql server sp on report open

Author  Topic 

kaus
Posting Yak Master

179 Posts

Posted - 2003-01-10 : 13:10:30
I have a report that has 4 sub reports - the datasources for each are separate stored procedures that each accept a single parameter. I think I can pass the paramters to the procedures on the report_open events, but dont know how. Does anybody know how to do this ??

Thanks

Pete

kaus
Posting Yak Master

179 Posts

Posted - 2003-01-10 : 17:07:56
I found answer on kb at microsoft(after banging my head for a couple hours)
put this in the report open event:
Dim strSource As String
strSource = "Exec [sp_RPT_AGENCY_PROJ] 162"
Me.RecordSource = strSource

Go to Top of Page
   

- Advertisement -