How do I make certain control receive focus first when adding a new record?

bfdeal31

Registered User.
Local time
Today, 23:44
Joined
Jun 26, 2002
Messages
23
This is probably an easy question but I haven't found the answer anywhere.. In a form, when I click on the button to add a new record, how do I make the cursor/focus automatically go to the first field/control in my form?
For example, I'm working on a music database and when the user clicks to add a new record, I want the cursor to be in the first text box to enter a music title no matter what control the cursor was previously in. How would I do this?
Thanks.

Steve
 
In the OnCurrent event of your form:
Me.Controls("YourControlName").SetFocus
 
Thanks

Thanks Alex.
That worked perfectly.

-Steve
 

Users who are viewing this thread

Back
Top Bottom