Run a Query in VB

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

Guest

Having Build a query using the Query design, how can I run this query within
VB. Does anybody know the syntax to do this
 
Hi

docmd.OpenQuery("QueryName")

{Look up in help to check other parameters}

hth

Andy Hull
 
Is it a select query

Docmd.OpenQuery "QueryName"

********************
Or action query - Delete, Edit , Append

CurrentDb.Execute ("QueryName") , dbFailOnError
 

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