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!

Go to new record on form load

Status
Not open for further replies.

tmryan

Programmer
Dec 22, 2000
73
0
0
US
Is it possible to make the navigationbuttons go to a new form ">*" on Form_Load ?

Thanks Tim Ryan
PROGRESS Developer
 
[bugeyed] I don't follow you, can you elaborate?

VBSlammer
redinvader3walking.gif
 
Let's say I have a table with 22 records in it. When I open up a form for entering/editing data, it opens up to the first record. I have to hit the NavigationButton that has a >* on it to go to a blank form (rec 23) - to enter a new record. I'd like that to occur on form load.

Thanks Tim Ryan
PROGRESS Developer
 
There is a docmd which brings in a new record. The wizard will show you the code. It is somethng like:

DoCmd.GoToRecord ,, acNewRecord

This could be triggered b y an onopenform event.

rollie@bwsys.net
 
Hi Tim:

Rolliee's right; the exact DoCmd is:
Code:
DoCmd.GoToRecord , , acNewRec

Cheers, Gus Brunston [glasses] An old PICKer, using Access2000. I manage Suggestions welcome. padregus@attbi.com
 
Thanks to both of you. I will try it out today. Tim Ryan
PROGRESS Developer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top