Results 1 to 2 of 2
  1. #1
    Alex Motilal is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Nov 2008
    Location
    Coimbatore, India
    Posts
    192

    Message Box


    Dear friends,
    I want a Message Box to appear with the following conditions.

    If on a Form someone changes the already entered data, the Message Box should appear with a Caution Title (also with a symbol such as Critical) asking if to accept the change. Also the Message Box should contain OK button to accept the changes and a Abort or Cancel button to abort the changes.
    I feel it should be associated with the On Change Event.
    Please help.

    Alex

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    I have never used OnChange event. This event would trigger with each keystroke in the control. I use AfterUpdate.

    Maybe like:

    If Me.controlname.OldValue <> Me.controlname & "" Then
    If MsgBox("Accept Change?", vbOKCancel + vbCritical, "Caution") = vbCancel Then Me.controlname = Me.controlname.OldValue
    End If
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 7
    Last Post: 03-17-2016, 05:53 PM
  2. Replies: 2
    Last Post: 01-23-2014, 12:40 PM
  3. Message Box
    By buck in forum Access
    Replies: 10
    Last Post: 12-24-2013, 08:09 AM
  4. Replies: 15
    Last Post: 11-01-2013, 03:24 PM
  5. Replies: 9
    Last Post: 09-26-2012, 12:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums