bs0d
Well-known Member
- Joined
- Dec 29, 2006
- Messages
- 622
I'm thinking about stacked queries in Access. And instead of saving fixed queries in the database, might there be a way using VBA with ADO to:
• Establish a "base" query.
• Reference that query in a SQL statement for another ADO query?
For example:
Base query selects records from multiple tables with x and y conditions AS [My_Base_Query]
Then, in the SQL statement of another ADO request,
Select field1, field2, field3 FROM [My_Base_Query]
If so, can someone give me an example? Thanks
• Establish a "base" query.
• Reference that query in a SQL statement for another ADO query?
For example:
Base query selects records from multiple tables with x and y conditions AS [My_Base_Query]
Then, in the SQL statement of another ADO request,
Select field1, field2, field3 FROM [My_Base_Query]
If so, can someone give me an example? Thanks