Making a command button of a delete query?

nille1234

Registered User.
Local time
Today, 23:25
Joined
Feb 15, 2006
Messages
14
Hi!

I'm having problems making a command button(Ta bort från engelska till svenska) of a delete query.
The name of the query is"Ta bort från engelska till svenska", which is also the name of the button on the form(huvudformulär)

Could someone please help me.
I'll enclose my zipped database.

Nille
 

Attachments

Code:
Private Sub Ta_bort_från_engelska_till_svenska_Click()

   DoCmd.SetWarnings False
   DoCmd.OpenQuery "Ta bort från engelska till svenska"
   DoCmd.SetWarnings True
   
End Sub

The code turns off warning, runs the delete query and then turns warning back on.

^
 
Thanks a lot for your help, but if I'm writing code I have no idea what I'm doing. Isn't there an easier way of doing it?

Nille
 

Users who are viewing this thread

Back
Top Bottom