Unanswered: Access fails to run an on load event on load untill user clicks - why?
Access fails to run an on load event on load untill user clicks - why?
here is the onload code, as you can see the first thing that should happen is that the message box should pop up and say "Hi There" but nothing happens untill I click somewhere. Why should that be?
Private Sub Form_Load()
On Error GoTo MsgError
Dim intx As Integer
Dim intCount As Integer
MsgBox "hi there"
intCount = Forms.Count - 1
For intx = intCount To 0 Step -1
If Forms(intx).Name <> Me.Name And Forms(intx).Name <> "HiddenStarter" Then
DoCmd.Close acForm, Forms(intx).Name
CurrentF = "PCE"
MsgBox "ERROR! No #" & Err.Number & " - MSG: " & Err.Description