Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2004
    Posts
    100

    Unanswered: message when deleting a record

    Hi,

    how can I modify the message that appears when deleting a record. I am using some froms bound to some tables and added, using the wizard, a delete button.
    Now I want to add some text to the message that pops up when i press this button. any ideas?
    Thanks in advance! regards proximus

  2. #2
    Join Date
    Nov 2003
    Location
    Sussex, England
    Posts
    404

    Delete Records

    The syntax is along the lines of:

    DoCmd.SetWarnings = False
    if msgbox ("Do you really want to delete this record", vbyesno)= vbYes then
    msgbox "On your head be it!!!!"
    Else
    Exit sub
    End if
    ....
    ....
    'Rest of the delete code
    DoCmd.SetWarnings = True
    .....

  3. #3
    Join Date
    Apr 2004
    Posts
    100
    thank you very much. your code works fine.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •