GangnamStyle
New member
- Local time
- Today, 13:52
- Joined
- Dec 7, 2015
- Messages
- 6
Hi,
so far I preferred to use separate (non VBA) SQL queries instead of huge nested queries. (except for Joins, or simpler WHERE IN statements)
Not only do I think nested queries with more than two tables are hard to understand (after a while) I also had problems when I use them correspondingly with UPDATE statements.
However, now I have to "hide" the queries in VBA which requires me to use the OpenRecordset statement (OpenRecordset("SELECT * FROM atable")).
Is it possible to use a defined SELECT query again (in VBA code) in an other query similar to what one can do in MS Access by simply saving quer1 and using this as input for query2?
Thanks a lot
so far I preferred to use separate (non VBA) SQL queries instead of huge nested queries. (except for Joins, or simpler WHERE IN statements)
Not only do I think nested queries with more than two tables are hard to understand (after a while) I also had problems when I use them correspondingly with UPDATE statements.
However, now I have to "hide" the queries in VBA which requires me to use the OpenRecordset statement (OpenRecordset("SELECT * FROM atable")).
Is it possible to use a defined SELECT query again (in VBA code) in an other query similar to what one can do in MS Access by simply saving quer1 and using this as input for query2?
Thanks a lot