Giving a textbox the Cursor

Hierophant

Registered User.
Local time
Today, 18:32
Joined
Mar 14, 2003
Messages
28
Hi,

What I need to do, is have a form with textboxes on it, and set it up so that when the form is opened, the cursor is immediately active in the first box, so that rather than click on it to make it active, the user can just start typing. How does one do this? :)

I resort to bothering you all with this question after a confusing time with the Microsoft Help Index..

Thanks in advance. :)
Hiero.
 
set the tab index for the first text box to 0
 
Actually.. it doesn't work like that! I tried this already, and it seems to only effect the order which tabbing takes...

Any other ideas?

I know hitting tab the first time will then take me to the first box.. but just wondering if you can just start with the cursor blinkin in the first box.. perhaps some tab increment command?
 
How are you opening the form, via a command button, do you use hyperlink?
 
after the docmd.openform action set the focus
to the control you want

forms![formname]![controlname].setfocus
 
Thanks a lot. :) I thought it might have something to do with focus. Cheers!
 

Users who are viewing this thread

Back
Top Bottom