Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

run update query on exiting a form 1

Status
Not open for further replies.

keelerobert

Technical User
Joined
Aug 2, 2005
Messages
17
I would like to run an update query when I exit a form. I know how to build an event on the close of the form but I don't know the code that will actually execute the query.
 
Hi
How about:
DoCmd.RunSQL
or
CurrentDB.Execute
 
my qury is an update qury called reimbursement. What is the correct syntax? I tried
DoCmd.runSQL reimbursmnt

That didn't work. Thanks for you help.
 
In that case you need:
DoCmd.OpenQuery "reimbursement
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top