Sort of... What you could do is make an SQL Pass Thru (SPT)query that runs the stored procedure with a parameter specified and make it the recordsource of your report. Finally when you open the report (presumably a button click event) you can modify the SQL property of the SPT Query to change the call (I would just set the entire statemnet).
Code:
Dim qry as dao.querydef
Set Qry = currentdb.queries("SPT Query Name")
qry.SQL = "procname (" & Variable & ")"
qry.close
set qry = nothing
docmd.openreport "ReportName"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.