openform

S

SueM

Hi,

I have a form with a control button on. Attached to the
control button is an on click event which opens another
form using the following command

DoCmd.OpenForm "Form1"

When Form one opens it contains some of the details from
the previous form.

Is there a way in which I can add a line to this event
which will force Form1 to open to a new record each time?

Cheers

Sue
 
S

Steve Schapel

Sue,

DoCmd.OpenForm "Form1", , , , acFormAdd

.... or...

DoCmd.OpenForm "Form1"
DoCmd.GoToRecord , , acNewRec

- Steve Schapel, Microsoft Access MVP
 

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