I have a simple report with a simple 'Select' stored procedure as the record source. However, before the report can run, it needs a parameter from an Access Project form. In my case, the parameter is an employee id number. The user enters an employee id unto the form, then the report is run via the 'DoCmd.OpenReport' method when the user clicks 'View Report'. I have my stored procedure written to select that employee id record from a table, but my stored procedure is not getting that employee id data from the form. I keep getting the pop-up message parameter box asking me for the employee id number. The stored procedure and report both work fine once I supply the employee id manually, but it will not 'grab it' from the form automatically when the report is run. I have tried multiple variations of sending the paramater over to the procedure, and these all work fine on other processes (e.g. Update, Insert Into, etc. stored procedures).
How does one set up a stored procedure, used as a report's record source, to get the required parameter from a form when the report is run?? This all worked great with Access .mdb files and sending parameters over to record source queries, but obviously something is different with Access projects.
Thanks in advance for any assistance you can offer.
How does one set up a stored procedure, used as a report's record source, to get the required parameter from a form when the report is run?? This all worked great with Access .mdb files and sending parameters over to record source queries, but obviously something is different with Access projects.
Thanks in advance for any assistance you can offer.