I have a sub where I'am trying to open up an existing qry
and this error is generated:
Run time error 3265
Item cannot be found in the collection corresponding to the requested name or ordinal
The spelling of the qry is correct.
Dim cmdCurr As New ADODB.Command
Dim catGetParamQry As New ADOX.Catalog
catGetParamQry.ActiveConnection = CurrentProject.Connection
Set cmdCurr = _
catGetParamQry.Procedures("qryActiveEmp".Command
and this error is generated:
Run time error 3265
Item cannot be found in the collection corresponding to the requested name or ordinal
The spelling of the qry is correct.
Dim cmdCurr As New ADODB.Command
Dim catGetParamQry As New ADOX.Catalog
catGetParamQry.ActiveConnection = CurrentProject.Connection
Set cmdCurr = _
catGetParamQry.Procedures("qryActiveEmp".Command