How to run a Query from code

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

Access 2007

trying to run an Update query in the on click event of a button (in an If
function)

This is what I am using

DoCmd.OpenQuery qryDeleteCallerInfo

do I have the syntax wrong?

Also: Is this correctly written
DoCmd.SetWarnings = True

I want to turn the warnings off once I have the query working properly

Any help here will be appreciated.

Thanks in advance
 

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