Opening a database with a new form

F

forest8

Hi

I am creating a database in which when users open it, it defaults to a
single form. At the moment, when they open it, it opens on a record.

Is it possible to open it so that it's a new form (i.e. record) instead of a
previously created record>

Thank you in advance for your help.
 
J

Jeanette Cunningham

You can set the data entry property of that form to No.
It will open ready to add a new record.

If you want users to be able to go back to other records, you can use code
in the load event to make the form go to a new record (without setting the
data entry property to No).

DoCmd.GoToRecord, , acNew


Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia
 
F

forest8

This is exactly what I needed. Thank you

Jeanette Cunningham said:
You can set the data entry property of that form to No.
It will open ready to add a new record.

If you want users to be able to go back to other records, you can use code
in the load event to make the form go to a new record (without setting the
data entry property to No).

DoCmd.GoToRecord, , acNew


Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia





.
 
J

Jeanette Cunningham

Thanks for spotting that. ;)

Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia


J_Goddard via AccessMonster.com said:
Hi Jeanette -

I think that should be "...set the data entry property of that form to
Yes"

John



Jeanette said:
You can set the data entry property of that form to No.
It will open ready to add a new record.

If you want users to be able to go back to other records, you can use code
in the load event to make the form go to a new record (without setting the
data entry property to No).

DoCmd.GoToRecord, , acNew

Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia
[quoted text clipped - 6 lines]
Thank you in advance for your help.

--
John Goddard
Ottawa, ON Canada
jrgoddard at cyberus dot ca

Message posted via AccessMonster.com
 

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