Results 1 to 4 of 4
  1. #1
    George is offline Competent Performer
    Windows 7 64bit Access 2013 64bit
    Join Date
    Feb 2012
    Posts
    295

    Choosing the correct event

    Good Day All,



    I have a problem determining which event to use in a particular situation, or whether an event should be used at all.

    Essentially, I want an action perform or not perform when I press a close button or exit button. I want the action performed if a record on the form is changed but nothing to happen if there is no change in the record.

    Does anyone know how to proceed in this situation?

    Thanks in advance.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Well, if you want it behind the button you can test:

    If Me.Dirty Then

    which will be true if the data has changed. Typically the before update event is used for validation.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    George is offline Competent Performer
    Windows 7 64bit Access 2013 64bit
    Join Date
    Feb 2012
    Posts
    295
    hi Pbaldy, thanks for your guidance. I do want it behind the button. I applied the guidance; It worked and I am happy.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 5
    Last Post: 09-12-2014, 06:41 AM
  2. Replies: 4
    Last Post: 03-05-2012, 10:20 AM
  3. Choosing Report
    By ShadeRF in forum Reports
    Replies: 12
    Last Post: 11-18-2011, 11:31 AM
  4. Replies: 9
    Last Post: 06-26-2011, 09:14 PM
  5. help in choosing from list
    By Nokia N93 in forum Programming
    Replies: 4
    Last Post: 11-30-2010, 07:29 AM

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