J
Jeremy Gollehon
If you had the following code behind a form, how many times would you expect
to see the word "yo" in the Immediate window?
---------------------------------------------------
Private Sub Form_Open(Cancel As Integer)
Me.Requery
End Sub
Private Sub Form_Current()
Debug.Print "yo"
End Sub
---------------------------------------------------
I would expect it twice. Once because of the default event handling...
"When you first open a form, the following events occur in this order:
Open ? Load ? Resize ? Activate ? Current"
....and once because of the Me.Requery in the Open event. However, it's only
showing up once (after the requery). Any ideas as to why?
Thanks,
-Jeremy
to see the word "yo" in the Immediate window?
---------------------------------------------------
Private Sub Form_Open(Cancel As Integer)
Me.Requery
End Sub
Private Sub Form_Current()
Debug.Print "yo"
End Sub
---------------------------------------------------
I would expect it twice. Once because of the default event handling...
"When you first open a form, the following events occur in this order:
Open ? Load ? Resize ? Activate ? Current"
....and once because of the Me.Requery in the Open event. However, it's only
showing up once (after the requery). Any ideas as to why?
Thanks,
-Jeremy