M
mdw233psu
I have a query that returns 9 rows and 5 columns. I can run the query
fine but am having trouble retrieving the results of the query. I
haven't used VBA in a few years and forget how to do this simple thing.
Here is how I run my query:
Set acQuery = CurrentDb.QueryDefs("crdAudits")
For Each prm In acQuery.Parameters
prm.Value = Eval(prm.Name)
Next prm
Set objRst = acQuery.OpenRecordset
I have tried using the objRst.fields() method, but it will only return
the first column. Is there a way to get all of the results so that i
can view all columns?
Help is greatly appreciated!
fine but am having trouble retrieving the results of the query. I
haven't used VBA in a few years and forget how to do this simple thing.
Here is how I run my query:
Set acQuery = CurrentDb.QueryDefs("crdAudits")
For Each prm In acQuery.Parameters
prm.Value = Eval(prm.Name)
Next prm
Set objRst = acQuery.OpenRecordset
I have tried using the objRst.fields() method, but it will only return
the first column. Is there a way to get all of the results so that i
can view all columns?
Help is greatly appreciated!