Delete Record/Exit Access

B

Ben

Just a couple of quick questions...

How do you delete a record using code?
How do you exit Access using code?
Thanks
 
A

Allen Browne

A1:
dbEngine(0)(0).Execute "DELETE FROM MyTable;", dbFailOnError

A2:
DoCmd.Quit
 

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