I have a routine that is pulling data from 3 queries that require a date input from the user. Each of these queries use the date parameter to calculate budgeted, actual and forecasted salaries. Individually, all of these queries work fine.
My problem comes when I try to use them to export data. I get an error 3061...too few parameters on a line "Set RSBudget = DB.OpenRecordset("Budget", dbOpenSnapshot)" where I'm opening the first query. I've used this syntax lots of times before and suspect it is the date input that is the problem. The way I set it up, I have the user input defined as [Forms]![Dollar Export].[txtStart] in all three queries and a text input on the face of the form called txtStart. Seems like it should work although I have never referenced a query that had a user input like that so I'm sure I'm not doing something right. Any ideas?
Thanks!
My problem comes when I try to use them to export data. I get an error 3061...too few parameters on a line "Set RSBudget = DB.OpenRecordset("Budget", dbOpenSnapshot)" where I'm opening the first query. I've used this syntax lots of times before and suspect it is the date input that is the problem. The way I set it up, I have the user input defined as [Forms]![Dollar Export].[txtStart] in all three queries and a text input on the face of the form called txtStart. Seems like it should work although I have never referenced a query that had a user input like that so I'm sure I'm not doing something right. Any ideas?
Thanks!