Quick easy question...

alpine82

Registered User.
Local time
Today, 08:14
Joined
Jun 5, 2003
Messages
27
When I open up a form the cursor automatically goes to the first box on the form and starts blinking. However when I hit the add record button I created on the form, the cursor does not re-appear in the box. Does anyone know how to make the cursor re-appear there without clicking on the box?
 
On the OnCurrent event for your form, set the following

me.YourTextBox.setfocus
 
You could also put that in the On_Click event of the 'new' button (providing you have your own nav buttons).

I prefer to do this, as it keeps it all together, rather that having code doing different things all over the place.

But that is just my opinion. :)
 

Users who are viewing this thread

Back
Top Bottom