Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2012

    Unanswered: Dirty event not working

    When i use the form's dirty event to switch some cmd buttons to disable, in some forms i find that it does not work though the code is the same. Once i move the record up one or down then it works. What would cause that to happen? :s thank

  2. #2
    Join Date
    Aug 2012
    Did you get an error message? My guess is that the control that you were trying to disable had the focus. If that's the case give the focus to something else before you try to disable it. You'll need to elaborate on your sistuation for a better answer.

  3. #3
    Join Date
    Jun 2005
    Richmond, Virginia USA
    Provided Answers: 19
    You really need to give a better explanation of exactly what you're trying to do, here! You sound as if you expect the formatting of the Controls to stay Record-specfic, as you move from Record-to-Record, but you cannot do that with the OnDirty event.

    Using the OnDirty event you can only Disable Controls until you move to another Record, and they must be Enabled, again, each time you do that. Is there something other than the Record being Dirty that dictates whether these Controls are Disabled or not, such as whether some Control is populated?

    Also, the OnDirty event does not even exist if the Form is Unbound.

    Linq ;0)>
    Last edited by Missinglinq; 08-28-12 at 18:57.
    Hope this helps!

    The problem with making anything that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

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