QueryDef using ADO

G

Gary

I am using Access 2000. I would like to create a querydef
in VBA using ADO. What I would like to do is create a SQL
string "strSQL=Insert into tblCustomer..." and use this
string to create my querydef and then execute the action
query. Here is the DAO code:

Set DB = CurrentDb()
Set ActionQuery = DB.CreateQueryDef("", strSQL)
ActionQuery.Execute dbFailOnError

I need to know the syntax for accomplishing the above
using ADO. Thanks.
 

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

Top