A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How to stop code in procedure when opening new form



 
 
Thread Tools Display Modes
  #1  
Old August 7th, 2005, 09:24 PM
A.J.M. van Rijthoven
external usenet poster
 
Posts: n/a
Default How to stop code in procedure when opening new form

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
  #2  
Old August 8th, 2005, 07:41 AM
fredg
external usenet poster
 
Posts: n/a
Default

On Sun, 07 Aug 2005 22:24:24 +0200, A.J.M. van Rijthoven wrote:

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

--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Retrieve ActionSettings via VB BmlKidd Powerpoint 6 March 30th, 2005 05:33 PM
How can I stop the "Getting Started" pane from opening in Word 20. mtvlgl General Discussion 1 October 25th, 2004 09:15 PM
Export to RTF very slow when code is present in Access report. [email protected] Setting Up & Running Reports 11 September 14th, 2004 08:17 PM
Stop Toobar from auto opening in Word 2000 XP Prof? Beth from So. Jersey Page Layout 1 September 1st, 2004 04:04 PM
Conversion of excel vba code to access vba filnigeria General Discussion 5 July 15th, 2004 02:23 AM


All times are GMT +1. The time now is 11:33 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.