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
 
Back
Top