SELECT queries in VBA in Access

maxhavoc

Registered User.
Local time
Yesterday, 23:34
Joined
Dec 12, 2005
Messages
14
I've been wracking my brain and scouring the net for information on how to do SELECT queries in Access and I can't figure it out or find correct information. Some idiot had a website that said to use DoCmd.RunSQL to do SELECT queries, but failed to mention that only ACTION queries can be used in that method, so I'm back at ground zero. What I want to do is this:

I want to be able to run a select query from a table, and store all the information in some sort of object so that I can access all the individual fields returned in the query and do things with them. Is there anyway to do what I'm asking for?
 
Look up RecordSet in VBA Help. I prefer DAO but you can use ADO as well.
 

Users who are viewing this thread

Back
Top Bottom