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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Starting a Form on a Blank Entry

Status
Not open for further replies.

soupisgood84

Technical User
Apr 17, 2007
45
US
This should be an easy one, but I looked and couldn't seem to find the answer.
How do I make a form start on a black entry page? When I open my current form it begins at the first entry.
 
In the Load event procedure of the form:
DoCmd.GoToRecord , , acNewRec

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Or simply on the forms property sheet, set Data Entry to Yes.
Of course, I'm assuming you met to type blank instead of black.
 
Thank you very much. Exactly what I was look for. My apologies for the misspelling.
 
. . . or in the [blue]On Load[/blue] event of the form:
Code:
[blue]   If Not Me.NewRecord Then DoCmd.RunCommand acCmdRecordsGoToNew[/blue]
[blue](also prevents error if no records!) . . .[/blue]

Calvin.gif
See Ya! . . . . . .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top