G
Guest
Hi all
Can anyone tell me how to use Visual Basic to set the SQL for an existing
query?
If I use:
[QueryDefs]![Name Of Query].SQL = Blahblahblah
It doesn’t work, I assume because the query is not open at the time, and
presumably therefore not in the QueryDefs collection.
Surely I don’t need to open the query up, presenting the user with a set of
results, before I can modify its SQL?
Thanks in advance
David Cleave
Can anyone tell me how to use Visual Basic to set the SQL for an existing
query?
If I use:
[QueryDefs]![Name Of Query].SQL = Blahblahblah
It doesn’t work, I assume because the query is not open at the time, and
presumably therefore not in the QueryDefs collection.
Surely I don’t need to open the query up, presenting the user with a set of
results, before I can modify its SQL?
Thanks in advance
David Cleave