Query from a Query (1 Viewer)

AccessProgram

Registered User.
Local time
Yesterday, 23:33
Joined
Dec 7, 2009
Messages
68
I created a query statement in a module. How can use that query as a record source of another query in the same module?

Should I use this like:

dim a,b as querydef

a=select * from tablename;
b=select * from a;
 

ajetrumpet

Banned
Local time
Today, 01:33
Joined
Jun 22, 2007
Messages
5,638
you can't do this. it's only available in the interface. and you can't use querydefs in this way, if you want to keep your sanity. but you CAN use recordsets that are opened with complex sql statements. might want to go that way
 

AccessProgram

Registered User.
Local time
Yesterday, 23:33
Joined
Dec 7, 2009
Messages
68
I have no idea on this. I was also thinking about recordsets but I dont know how to construct it. Can you give me an example how to use the recordset for my purpose stated above wherein I use one query as record source for another query?
 

Users who are viewing this thread

Top Bottom