D
DiDi
I am currently design a Form, use "on open" event property of the FORM
to make a selection. However, I keep getting the message before the
FORM open, even I put "timeinterval =500", it does not help. Any one
know how to do so FORM pop up first then the message displays
afterwards. Thanks.
Private Sub Form_Open(Cancel As Integer)
Dim bolyn As Integer
DoCmd.SetWarnings False
Me.Comdis.Enabled = False
Me.Comdoc.Enabled = False
timeinterval = 500
bolyn = MsgBox("Sorted by PlantInvent?", vbYesNo + vbDefaultButton1,
"Sorting")
Select Case bolyn
Case vbNo:
Me.Comdis.Enabled = True
Me.Comdis.SetFocus
Case vbYes:
Me.Comdoc.Enabled = True
Me.Comdoc.SetFocus
End Select
End Sub
to make a selection. However, I keep getting the message before the
FORM open, even I put "timeinterval =500", it does not help. Any one
know how to do so FORM pop up first then the message displays
afterwards. Thanks.
Private Sub Form_Open(Cancel As Integer)
Dim bolyn As Integer
DoCmd.SetWarnings False
Me.Comdis.Enabled = False
Me.Comdoc.Enabled = False
timeinterval = 500
bolyn = MsgBox("Sorted by PlantInvent?", vbYesNo + vbDefaultButton1,
"Sorting")
Select Case bolyn
Case vbNo:
Me.Comdis.Enabled = True
Me.Comdis.SetFocus
Case vbYes:
Me.Comdoc.Enabled = True
Me.Comdoc.SetFocus
End Select
End Sub