Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2005
    Location
    Utah
    Posts
    136

    Unanswered: Are you sure you wish to continue message box

    I'm not able to find the answer to my question.

    I have a control that when the user makes a change to it, I want a message box to appear asking if they wish to continue, and two buttons in the message box for Yes and Cancel.

    Should I create a form with this message and buttons and then in the BeforeUpdate event have this form open?

    If so, I'm not sure what code to enter for the OnClick event for the Yes button, a save command? For the Cancel button could I just say DoCmd.Close and nothing will be changed?
    Last edited by Zenaida; 12-27-05 at 18:43.

  2. #2
    Join Date
    Feb 2004
    Location
    New Zealand
    Posts
    1,419
    Provided Answers: 7
    look @ MsgBox in the help

    [code]
    If MsgBox("Do you want to Save you work", vbYesNo) = vbYes Then
    'click the Yes
    Else
    'click the no
    End If
    [\code]
    hope this help

    See clear as mud


    StePhan McKillen
    the aim is store once, not store multiple times
    Remember... Optimize 'til you die!
    Progaming environment:
    Access based on my own environment: DAO3.6/A97/A2000/A2003/A2007/A2010
    VB based on my own environment: vb6 sp5
    ASP based on my own environment: 5.6
    VB-NET based on my own environment started 2007
    SQL-2005 based on my own environment started 2008
    MYLE
    YOUR PASSWORD IS JUST LIKE YOUR TOOTHBRUSH DON'T SHARE IT.

  3. #3
    Join Date
    Sep 2005
    Location
    Utah
    Posts
    136
    Thanks for your help. I added

    Me.Undo

    after the Else statement and everything seems to be working good.

Posting Permissions

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