Navigating between forms

mikela

Registered User.
Local time
Today, 09:03
Joined
Nov 23, 2007
Messages
70
Hello!

Is there any way to keep information from one form to another, like sessions in web pages???

Also, how can I navigate between forms?? Only with the buttons?? Can I close a form when I open a new one??? How would I do it??

Lots of questions! But im so new, and need to have it done!


Thanks!
 
Hello,

You can open new forms using any type of event you wish, button clicks, click in a textbox, when a textbox gains focus etc. But buttons are the most common.

If you wish to close the current form and open a new one you can use the following code.

'Closes the current form
DoCmd.Close
'Opens the new form
DoCmd.OpenForm frmName

Where frmName is the name of the form.
 
To carry data from one form to another, a simple method is to write the data to a table and have the new form look it up when opened.

Chris B
 

Users who are viewing this thread

Back
Top Bottom