Delete Button

T

Tony

I have a form in tabular format with a list of brands. I
want a button delete button that will ask you to confirm
beore deleting a record. How do I do this?

Thankyou in advance!
 
A

Ashby

Try this:

Dim intresponse as integer

intresponse = Msgbox("Are you sure you want to delete this
record?,vbyesno + vbquestion,"Confirm Deletion")

If intresponse = vbyes then
PUT YOUR DELETE CODE HERE
end if
 

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