How can I get DoCmd.OpenQuery to return a recordset that I can loop through?
EXAMPLE:
Call DoCmd.OpenQuery("qryGetProjsReviewOrderby")
-->will open the query.
Set recTest = DoCmd.OpenQuery("qryGetProjsReviewOrderby")
-->will highlight the 'OpenQuery' and say: expected function or variable.
If DoCmd.OpenQuery is not intented to return recordsets, what should I do to have a recordset returned that I can loop through.
Thank you
EXAMPLE:
Call DoCmd.OpenQuery("qryGetProjsReviewOrderby")
-->will open the query.
Set recTest = DoCmd.OpenQuery("qryGetProjsReviewOrderby")
-->will highlight the 'OpenQuery' and say: expected function or variable.
If DoCmd.OpenQuery is not intented to return recordsets, what should I do to have a recordset returned that I can loop through.
Thank you