Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make form show user empty new record 1

Status
Not open for further replies.

saraUSIT

Programmer
Jul 15, 2009
20
0
0
US
How do I code a form that it will show the user an empty new record when user opens form? I don't want them to have to click on the new record button to get to a new page.

Thanks
 
Set the "Data Entry" property of the form to "Yes".
HTH
pjm
 
pjm's advice will work if you only want to add new records, but you cannot then view existing records.

Yo go to a new record on opening and be able to view existing records use this:

Code:
Private Sub Form_Load()
   DoCmd.GoToRecord , , acNewRec
End Sub

The Missinglinq

Richmond, Virginia

There's ALWAYS more than one way to skin a cat!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top