Greetings,
In my database I have a form that inputs a start date and end date. A query uses these dates to give wanted records. I have a module that updates a table. A command button is on the Dates form and runs the VBA code then opens a report. When the command button is pressed, I get an error of 'Too few parameters passed'. The form is still open on the line of code that opens the recordset. Do I have to pass thetext box dates to the module?. When I take out the call to the function, the query runs just fine with the right records.
Thanks,
David
In my database I have a form that inputs a start date and end date. A query uses these dates to give wanted records. I have a module that updates a table. A command button is on the Dates form and runs the VBA code then opens a report. When the command button is pressed, I get an error of 'Too few parameters passed'. The form is still open on the line of code that opens the recordset. Do I have to pass thetext box dates to the module?. When I take out the call to the function, the query runs just fine with the right records.
Thanks,
David