acDialog

  • Thread starter Thread starter Steve
  • Start date Start date
S

Steve

I have the following code which opens a Password form. I <thought> that
because of the "acDialog", the code will stop or pause until the
Password Form is closed. However, the MsgBox for Response (which is
there for my debugging purposes) displays as soon as the Password form
opens. Am I doing something wrong?

Sub BxProtect_BeforeUpdate(Cancel As Integer)
'6.24.05
Response = 0
If Not [BxProtect] Then
DoCmd.OpenForm "Password", , , , , acDialog
End If
MsgBox "Response = " & Response
End Sub



Thanks

Steve
 
Back
Top