Greetings, I first off want to state that I am new to the forum, so if this question ends up in the wrong area, I apologize. This pertains to Access 2003/VBA/SQL issues...
I have been doing some investigating regarding the error which I will explain shortly, and thus far it has all pertained to WHERE clauses relating to forms causing errors when transferred over to VBA.
My issue is a wee bit different and I will explain the situation below. I have a query of a query at the moment which is made up of the following SQL code:
When I attempt to set this query as a recordset in VBA I get the too few parameters error. Since none of this data comes from a form (it is all from another query) I can not figure out for the life of me what the issue is. I will keep this post short and answer more questions as needed, but the error is occuring when I attempt to set the recordset. That code is shown below:
Set rs1 = db.OpenRecordse t("Number of Passes Chart Query", dbOpenDynaset)
Much abliged,
JGrizz
I have been doing some investigating regarding the error which I will explain shortly, and thus far it has all pertained to WHERE clauses relating to forms causing errors when transferred over to VBA.
My issue is a wee bit different and I will explain the situation below. I have a query of a query at the moment which is made up of the following SQL code:
Code:
SELECT [Shop_Order_Number] & " " & [Document_Description] AS Description, Count([Chart Filter Query].Revision_Number) AS [Number of Passes] FROM [Chart Filter Query] GROUP BY [Shop_Order_Number] & " " & [Document_Description];
Set rs1 = db.OpenRecordse t("Number of Passes Chart Query", dbOpenDynaset)
Much abliged,
JGrizz
Comment