Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create Query 1

Status
Not open for further replies.

sucoyant

IS-IT--Management
Sep 21, 2002
213
US
Hello all!

Is there a way in VBA to create a query, and 'save' it so it shows in the "Queries" window?

Thanks in advance!

________________________________________
BUDDHA.gif
Buddha. Dharma. Sangha.
 
yes like this:

Dim sql As String
sql = "SELECT * FROM DBNames;"

CurrentDb.CreateQueryDef "qryTest", sql
 
AH HA! THANK YOU!

Your help is GREATLY appreciated!!!!

________________________________________
BUDDHA.gif
Buddha. Dharma. Sangha.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top