open form in add new record status by default

A

Andrew

I have a table with some values allready. When i'm opening the form "ADD", I want automatcally to be opened in add new record status, not to have to scroll to the end or to press a add button.

Can anyone help me in this problem
thanks
 
A

Arvin Meyer

Andrew said:
I have a table with some values allready. When i'm opening the form "ADD",
I want automatcally to be opened in add new record status, not to have to
scroll to the end or to press a add button.
Can anyone help me in this problem?
thanks

In the OnOpen event of your form, select [Event Procedure] then clicl on the
ellipes button. Add the following line of code code:

DoCmd.GoToRecord , , acNewRec
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads:
http://www.datastrat.com
http://www.mvps.org/access
 

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