Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Mar 2009
    Location
    Hong Kong
    Posts
    359
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It seems both events are the same, Aren't they?
    What's the difference between the two events?
    Armstrong

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    There are several very important differences:

    1. Scope
    - On Dirty applies to a form as a whole and to controls on the form.
    - On Change applies to controls only.

    2. Bound vs unbound
    - On Dirty only works for bound controls on a bound form. It doesn't work for unbound controls, whether on a bound or unbound form.
    - On Change works for both bound and unbound controls.

    3. Once vs repeated
    - On Dirty occurs once when the user starts editing a control.
    - On Change occurs each time the user types something.
    So if the user types 5 letters, On Dirty occurs once, and On Change 5 times.

  3. #3
    3 Star Lounger
    Join Date
    Mar 2009
    Location
    Hong Kong
    Posts
    359
    Thanks
    0
    Thanked 0 Times in 0 Posts
    [quote name='HansV' post='780712' date='20-Jun-2009 06:27']There are several very important differences:

    1. Scope
    - On Dirty applies to a form as a whole and to controls on the form.
    - On Change applies to controls only.

    2. Bound vs unbound
    - On Dirty only works for bound controls on a bound form. It doesn't work for unbound controls, whether on a bound or unbound form.
    - On Change works for both bound and unbound controls.

    3. Once vs repeated
    - On Dirty occurs once when the user starts editing a control.
    - On Change occurs each time the user types something.
    So if the user types 5 letters, On Dirty occurs once, and On Change 5 times.[/quote]
    1. Your meticulous analysis is absolutely sublime.
    2. The Access online manual doesn't provide the in-depth details you offer.
    3. When testing, I tested on a bound combo box. Therefore, I couldn't notice the difference.
    4. What you explain exactly matches the actual happening, but then I didn't notice the nuance, such as On Dirty being occurring once.
    Thanks a lot.
    Armstrong

Posting Permissions

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