• Won’t recognize Dirty event (Access2000)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Won’t recognize Dirty event (Access2000)

    Author
    Topic
    #408703

    I’ve encountered a bizarre occurance in one particular form. It won’t recognize the “Dirty” event when on a new record.

    I’ve placed a breakpoint in the Dirty event code to verify this. The event fires when an existing record is dirtied, but not a new record! And I know it is dirty by checking both the record selector (which displays the pencil) and manually check the form’s dirty property via the immediate window.

    This works fine with other forms, just not this one. Can anyone offer an explanation?

    Viewing 0 reply threads
    Author
    Replies
    • #865230

      If you modify a record in VBA (for example, if you populate controls in the Before Insert event), the On Dirty event does not occur. Do you have something like that?

      • #865237

        That was it! Thanks. I was trying to figure out how this form differed from all the other forms in which this worked! And in this one form I did have some code in “Before Insert” that populated a field in the record, not something I routinely do.

        Thanks again. This was beginning to be one of those “This is ridiculous, there is no reason why this shouldn’t be working here!”.

      • #865238

        That was it! Thanks. I was trying to figure out how this form differed from all the other forms in which this worked! And in this one form I did have some code in “Before Insert” that populated a field in the record, not something I routinely do.

        Thanks again. This was beginning to be one of those “This is ridiculous, there is no reason why this shouldn’t be working here!”.

    Viewing 0 reply threads
    Reply To: Won’t recognize Dirty event (Access2000)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: