How to stop code in procedure when opening new form

  • Thread starter A.J.M. van Rijthoven
  • Start date
A

A.J.M. van Rijthoven

I made a login form.
You can enter username, password and a new password on this form.
When data is entered in the 'new password' textbox, a new form opens.
On this new form (re-enter password), the new password has to be
entered again to dubbelcheck the input. When this new form is opened,
I want to stop the procedure on the login form. When the password is
entered correctly in the re-enter password form, the new password has
to be stored and both the forms (re-enter password) and (login) have
to be closed.
How do I manage to stop the procedure on the login form while the
second form is open or is there another solution for this problem?

Thanks in advance,
Toine
 
F

fredg

I made a login form.
You can enter username, password and a new password on this form.
When data is entered in the 'new password' textbox, a new form opens.
On this new form (re-enter password), the new password has to be
entered again to dubbelcheck the input. When this new form is opened,
I want to stop the procedure on the login form. When the password is
entered correctly in the re-enter password form, the new password has
to be stored and both the forms (re-enter password) and (login) have
to be closed.
How do I manage to stop the procedure on the login form while the
second form is open or is there another solution for this problem?

Thanks in advance,
Toine

Open the second form in Dialog.

DoCmd.OpenForm "Form2", , , , , acDialog
If Forms!Form2![ControlName] = Me![PasswordControl] then
'It's the same
' Do something here
Else
' It doesn't match
' Do something else here
End If
 

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