Hello all.
I have a main form and a subform. The subform has line items for a customer order. I have a unbound text box in the foooter to tally up one of the fields in the subform.
I want to use that number to run a test when the user leaves The SUBFORM, meaning, the subform loses focus, (or so I thought.) However, it doesn't seem to register the event. I tried testing this event in the VBA code window, using the Immediate window, simply doing as so:
(This is attached to the SUBFORM'S LostFocus event)
Private Sub Form_LostFocus()
Debug.Print "Testing..."
End Sub
Nothing happens!!
The same is true for the OnGotFocus event of the subform,and the OnActivate event as well.
Any ideas? I'm stuck!
Thanks.
Steve
I have a main form and a subform. The subform has line items for a customer order. I have a unbound text box in the foooter to tally up one of the fields in the subform.
I want to use that number to run a test when the user leaves The SUBFORM, meaning, the subform loses focus, (or so I thought.) However, it doesn't seem to register the event. I tried testing this event in the VBA code window, using the Immediate window, simply doing as so:
(This is attached to the SUBFORM'S LostFocus event)
Private Sub Form_LostFocus()
Debug.Print "Testing..."
End Sub
Nothing happens!!
The same is true for the OnGotFocus event of the subform,and the OnActivate event as well.
Any ideas? I'm stuck!
Thanks.
Steve