Delete Button

  • Thread starter Thread starter Tony
  • Start date Start date
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!
 
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
 
Back
Top