Results 1 to 3 of 3
  1. #1
    hazeleyre23 is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Mar 2016
    Posts
    34

    Message Box if a change has been made

    Hi,



    I was wondering if there was a way to have a message box pop up, if a change has been made.

    I have a comments box, in which if a manager makes a change to a member of staffs file then they have to put comments in. However if they do not make any changes then they do not need to put comments in.

    I currently have this, however this pops up every time, even if a manager just views a staff file. I only want it to pop up if a change has been made.

    Code:
        If IsNull(txtComments) = True Then
            MsgBox "Please enter Comments."
    thanks

  2. #2
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    When do you want this to happen, and where do you currently have the code?

    Do you want the comment to be entered if any change id made to any field?

    You could end up with a circular argument too, because adding comments is also a change to the record.

    I think what you want is possible, but it will require some VBA, and careful analysis of the logic involved.

  3. #3
    hazeleyre23 is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Mar 2016
    Posts
    34
    I think I may have found another route I can use, by creating an Audit trail.

    thank you for your assistance though

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

Similar Threads

  1. Alert or Message Box on Data Change within Query or Table
    By HelpMePlease in forum Programming
    Replies: 5
    Last Post: 04-02-2014, 08:57 AM
  2. Track who made last change
    By BRZ-Ryan in forum Database Design
    Replies: 9
    Last Post: 01-08-2014, 11:47 AM
  3. Replies: 5
    Last Post: 07-30-2013, 01:12 PM
  4. Replies: 3
    Last Post: 12-11-2012, 09:12 AM
  5. Change error message for dupicate entry
    By Amber in forum Forms
    Replies: 3
    Last Post: 03-12-2012, 02:39 PM

Tags for this Thread

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