acDialog

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top