Open Form with "new record"

StephenSLR

Registered User.
Local time
Tomorrow, 03:39
Joined
Oct 25, 2005
Messages
48
I have set up a form like a web page with a "Next >" button to close the current form and open a new form.

Is it possible to have the new form open and be ready to accept a new record instead of having to hit the "Create a new record" [>*] button?

s
 
Instead of opening it in normal mode, open it in add mode.
 
Code:
DoCmd.OpenForm "YourFormNameHere", , , , acFormAdd
 
Pat Hartman said:
Instead of opening it in normal mode, open it in add mode.

How is this done?

I have set up form1 with a command button to open form2.

Also, how would I have form2 open in add mode?

s
 
StephenSLR said:
How is this done?

I have set up form1 with a command button to open form2.

Also, how would I have form2 open in add mode?
The answer is about five inches above your last question.
 
ghudson said:
Code:
DoCmd.OpenForm "YourFormNameHere", , , , acFormAdd

I have added this into the "on Click" properties for the form button.

The Record counter at the bottom of the new form says

"Record: 1 of 1"

though there are more than one records in the table.

Is this how it should look?

s
 
Also I would like to have the "start up" display form open up ready to add a new record as well.

How is this done?

s
 
Change the form's DataEntry property to Yes.
 

Users who are viewing this thread

Back
Top Bottom