Solved: Move cursor to required field when form is complete, access 2007

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

ginaw

Thread Starter
Joined
Sep 8, 2010
Messages
81
I have 2 buttons, New Record and Duplicate. When these buttons are clicked on, I want the cursor to move to the Employee ID field after executing the command. Can anyone help please? If it is just a bit of code can you tell me exactly where to put it? Any help would be greatly appreciated!!
 

ginaw

Thread Starter
Joined
Sep 8, 2010
Messages
81
Solved this myself. I created a macro at the end of the Buttons Embedded Macro 'On Clilck' event. Macro:

GoToControl cbotextboxname

Works like a charm.
 

OBP

Joined
Mar 8, 2005
Messages
19,895
For anyone interested the VBA version is
me.cbotextboxname.setfocus
 

ginaw

Thread Starter
Joined
Sep 8, 2010
Messages
81
OBP,

I wondered where you were? Thanks so much for the code. I have incorporated it elsewhere and you're a star!!(y)
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Members online

Top