Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Microsoft Access > Delete Query wi...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 29942 of 31576
Post > Topic >>

Delete Query without the confimation prompts

by "Presto" <junkmail@[EMAIL PROTECTED] > Apr 12, 2008 at 04:43 PM

I have form with a Close button.  When the button is closed, I want it to 
first delete all records in tblCustomerID then close the form.
I would like the delete query to just run and not prompt me over and over 
and over to confirm because I WANT to DELETE them.
If it's better to run it as SQL code and not a separate query, that's
cool, 
but I have no idea how to do this.

Heres the code behind the OnClick event:

Private Sub cmdCloseForm_Click()
On Error GoTo Err_cmdCloseForm_Click

        ' This statement runs the query to delete all recordsfrom the 
tem****ary table tblCustomerID

    DoCmd.OpenQuery "qry_Lookup_DeleteCID"
    DoCmd.Close

Exit_cmdCloseForm_Click:
    Exit Sub

Err_cmdCloseForm_Click:
    MsgBox Err.Description
    Resume Exit_cmdCloseForm_Click

End Sub
_______________________________________

Any help is deeply appreciated,

Presto
 




 3 Posts in Topic:
Delete Query without the confimation prompts
"Presto" <ju  2008-04-12 16:43:54 
Re: Delete Query without the confimation prompts
fredg <fgutkind@[EMAIL  2008-04-12 14:28:28 
Re: Delete Query without the confimation prompts
"Presto" <ju  2008-04-12 21:09:05 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 1:36:00 CST 2008.