This one has me baffled.
From one of my forms, I use this code to open another one in dialog mode:
Docname = "translate form"
gbSQL_Failed = False
gbVerb_Only = False
gbUse_Keywords = False
gsCurrent_English = English
PushForm
DoCmd.OpenForm Docname, , , , , acDialog
Pushform is a procedure to hide the current form but not close it.
The problem is in the Translate Form.
According to Microsoft, the order of events when opening the form should be:
Open -> Load -> Resize -> Activate -> Current
But by using debug.print, I have found the order of events to be this when I open the form:
Current -> Load -> Current -> Open (Activate did not fire at all)
Does anyone know what's going on here? The order is backwards and On Current fires twice!
It's a pain because On Current depends on values set by On Load, but which are messed up by On Open.
Thanks for any insight.
John