Results 1 to 4 of 4
  1. #1
    Middlemarch is offline Competent Performer
    Windows 10 Access 2019
    Join Date
    Mar 2015
    Posts
    340

    Detecting chnage


    When a modal form closes, is there a way to detect a change to any control ?
    OR must all the controls change or after update event be polled ?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,825
    If any field has been edited, form will be "dirty". There is a property and event to work with. What do you want to do?
    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.

  3. #3
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,737
    Not clear if you mean if fields have changed on the modal form or the form that opened it. If the modal form and it is bound I think you would have to set a variable in the form AfterUpdate event because once saved, you can't use the .Dirty property of the form. If you want to know which control(s) specifically, then I'd try looping over the controls by type and comparing their .Value to the .OldValue to see which were altered. If not bound, one way would be to concatenate a string variable of control names as they are updated.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  4. #4
    Middlemarch is offline Competent Performer
    Windows 10 Access 2019
    Join Date
    Mar 2015
    Posts
    340
    Thanks for the replies. Am trying the suggestions

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

Similar Threads

  1. Replies: 6
    Last Post: 07-20-2018, 04:05 PM
  2. Replies: 3
    Last Post: 09-17-2016, 06:31 PM
  3. Detecting if scrollbar is currently displayed
    By EonsTimE in forum Programming
    Replies: 14
    Last Post: 05-15-2016, 06:42 PM
  4. Detecting a Before Update Cancel
    By EddieN1 in forum Programming
    Replies: 3
    Last Post: 06-09-2013, 08:04 PM
  5. detecting a null date
    By tedpottel in forum Queries
    Replies: 3
    Last Post: 03-02-2010, 01:45 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