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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create Access Query Using SQL from VB

Status
Not open for further replies.

leonepaolo

Programmer
May 28, 2001
82
CA
Hi,

From outside of Access, I'd like to create a query in Access programatically, just like you can create a table.

Background: I've created a number of queries which I modify at run-time. Instead of modifying them, I'd prefer to just create them at run-time. Frankly, I have to many queries, when I go into the mdb file, there's just too many queries to sort through when I'm trying to figure out something new. I would really like to add and drop queries at run-time as the program requires them.

Any comments and/or instructions would be greatly appreciated.

Thanks in advance,
Paolo
 
You may play with the QueryDefs collection.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top