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
 
Top