Focus for new record (1 Viewer)

moose

c'mon Chelsea
Local time
Today, 05:03
Joined
May 18, 2001
Messages
139
i have attached a .mdb because i have a feeling i am not going to explain my problem very well.
When the form opens, i want a new record to be the focus and not the 1st record in the table.
Any ideas please?
 

Attachments

  • DCN Register.zip
    53.8 KB · Views: 107

MStef

Registered User.
Local time
Today, 05:03
Joined
Oct 28, 2004
Messages
2,251
:p Hello moose!

On Form_Open event put this code.

DoCmd.GoToRecord acDataForm, "formName", acNewRec
 

moose

c'mon Chelsea
Local time
Today, 05:03
Joined
May 18, 2001
Messages
139
I tried your solution by changing "FormName" to the name of my subform and main form (not at the same time) but neither worked.
Should the code go in the onopen event of the main form?
 

moose

c'mon Chelsea
Local time
Today, 05:03
Joined
May 18, 2001
Messages
139
I have done that but the focus is still on the 1st record
 

Users who are viewing this thread

Top Bottom