Start in the first position the cursor!

calucho

Registered User.
Local time
Today, 00:40
Joined
Nov 25, 2011
Messages
18
Hi;
I have a form for Data Entry in access 2010 I want that the cursor come back at the first position of the field on my form whe I finish to enter the information. theree is a option for these??

Thank you for you help.

Carlos
 
To set the cursor to a control, call the control' setfocus method...
Code:
Me.Textbox1.SetFocus
...and to set the length of the selection, use the SelLength property of the control...
Code:
Me.Textbox1.SetFocus
Me.Textbox1.SelLength = 0
I think SelLength will fail if the control does not have the focus.
Cheers,
 
I'm not sure if this is what you want but try setting the Form's Cycle property to Current Record.

attachment.php
 

Attachments

  • Capture.PNG
    Capture.PNG
    13.9 KB · Views: 3,866
I think that lagbolt's code should read;
Code:
Me.Textbox1.SetFocus
Me.Textbox1.Sel[B]Start[/B] = 0
 
Hello;
Thank you very much for you help

Carlos
 
Along these same lines, is there a way to make the "mouse" hover over a specific place when opening forms.

If a Control to open a Form is physically the same as a Subform that is on the opening Form the Form can go into a refresh loop until the user moves the mouse.
 
You do realise this is a 7 year old thread?
Rather than use complex code unnecessarily, I suggest you move the control or the subform.
Alternatively, disable the control after clicking it.
 
Along these same lines, is there a way to make the "mouse" hover over a specific place when opening forms.

If a Control to open a Form is physically the same as a Subform that is on the opening Form the Form can go into a refresh loop until the user moves the mouse.

Hi. You might consider starting a new thread rather than tagging on a 7-year okd discussion. You can add a link to this one for reference. In any case, I'm not sure I fully understand your question. What's happening with your form? Can you post some screenshots?
 

Users who are viewing this thread

Back
Top Bottom