Running a query from vb without opening in access

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

Is there a visual basic command/language to run a query without having it
open in access? What I am doing is picking items from a list box in a access
form, then "On Exit" calling an event procedure in vb that creates a query.
From this query I would then like to populate a second list box. The problem
is, I can't figure out how not to open the query in access, I would just like
to create it and run it. Right now, my vb procedure has an "OpenQuery"
command to in effect run the query. Is there a "RunQuery" type command that
won't open it as well??
 
forget it, I just figured out you don't even have to open it, it's 'creation'
is enough to populate the query. duh.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top