I am getting an error.
Item not found in this collection - runtime error 3265.
I've searched online for the answer and I found that it is due to something incorrect in the spelling, etc.
However, I have checked and rechecked.
The query name is qry_55
The field is c.cnty_cd - However this query is run from an sql statement that Has the following from statement:
My qryDef code is as follows:
Does this need to be written differently because I named the table in the query 'c'?
Thanks for any help on this.
Item not found in this collection - runtime error 3265.
I've searched online for the answer and I found that it is due to something incorrect in the spelling, etc.
However, I have checked and rechecked.
The query name is qry_55
The field is c.cnty_cd - However this query is run from an sql statement that Has the following from statement:
Code:
....FROM sw_cty_pd AS c
Code:
Dim db As DAO.Database
Dim qdf As DAO.QueryDef
Dim rst As DAO.Recordset
Set qdf = CurrentDb.QueryDefs("qry_55")
qdf.Parameters("c.cnty_cd").Value = "01"
Set rst = qdf.OpenRecordset
Does this need to be written differently because I named the table in the query 'c'?
Thanks for any help on this.