I have a form for entering Staff Names and what I am trying to do, is only enable the Save Record button once both a first and last name are entered.
I created a Form_Dirty sub and in it, I was checking the value of the two text boxes. If both were not Null then I'd enable the save button. This however only works when both are not null and when they are initially being entered, only one is non-null when the OnDirty event is run.
So I tried using the Dirty Event in each text box and having it call the Form_Dirty procedure. However, the second text box to be filled is still Null when its OnDirty event fires, so the buttons still do not enable.
I tried using AfterUpdate instead of OnDirty, for the text boxes, but those events don't fire until the user has exited both text boxes.
I was hoping for something that could detect that one text box was edited and that the other was in a state of being edited and at that point, enable the save Button.