L
LGarcia
Hi all,
I've added some hot keys to open MyFormA under the condition that MyFormB
is open as well. I'm using this on the open event of MyFormA:
If CurrentProject.AllForms("MyFormB").IsLoaded = False Then
MsgBox "MyFormB must be open to view MyFormA."
DoCmd.CancelEvent
Endif
My problem is that the list box on MyFormA is asking for the parameters it
gets from MyFormB before my MsgBox appears. It seems that the list box is
running its query before the open event. Is there an event before open?
TIA,
LGarcia
I've added some hot keys to open MyFormA under the condition that MyFormB
is open as well. I'm using this on the open event of MyFormA:
If CurrentProject.AllForms("MyFormB").IsLoaded = False Then
MsgBox "MyFormB must be open to view MyFormA."
DoCmd.CancelEvent
Endif
My problem is that the list box on MyFormA is asking for the parameters it
gets from MyFormB before my MsgBox appears. It seems that the list box is
running its query before the open event. Is there an event before open?
TIA,
LGarcia