Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error on SP as recordsource

Status
Not open for further replies.

EMEP

Technical User
Feb 27, 2006
9
NL
I have a report it's recordsource links to as SP. To pass 3 variables I use a form to select the criteria. When passing criteria manually to the SP it runs OK. However when it's supposed to open the report with the required records it stays blank and I get the following error message
"Must pass parameter number 2 and subsequent parameters as 'name=value' ..."

Have named variables in inputparameter property, but they seem to disappear after running the SP.

Any ideas?

Thanks

Eric

 
In the Input Parameters of the report property, type something like this in.

@mymonth=forms!frmreports!txtMonth,@myyear=forms!frmreports!txtYear,@myday=forms!frmreports!txtDay

My variables are @mymonth,@mtyear and @myday, where the frmreports is the form name.
 
Thanks for your input, I have declared input parameters like that, but after running the stored procedure they are no longer in the properties box. Leading possibly to the error message

Any additional ideas?

Thanks Eric
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top