J
Jey
I have a form that asks for user input (a couple of combo boxes and check
boxes). When they hit 'OK' it generates a SQL statement, which I then want
to be able to do two things with:
1, run and export to excel (I got this to work!), and
2, open as a new querry in access so the user can fine-tune the querry (and
then save and/or export).
How can I do the latter? Assume I have a sql statement stored as a string
ie.
Dim strSQL as string
strSQL = "SELECT blah blah blah"
'now open strSQL as a querry in the current database
Any help would be greatly appreciated! Thanks!
boxes). When they hit 'OK' it generates a SQL statement, which I then want
to be able to do two things with:
1, run and export to excel (I got this to work!), and
2, open as a new querry in access so the user can fine-tune the querry (and
then save and/or export).
How can I do the latter? Assume I have a sql statement stored as a string
ie.
Dim strSQL as string
strSQL = "SELECT blah blah blah"
'now open strSQL as a querry in the current database
Any help would be greatly appreciated! Thanks!