Forum Discussion
faxylady
Jul 07, 2021Copper Contributor
Set the Focus
06/08/21 Many years ago, I acquired some code to allow me to have the cursor start on my first line of my forms. Even though I have changed the lines to correspond with each form, for some reason, I...
isladogs
MVP
I see that nobody has responded, possibly because, like me, other forum members aren't quite clear what you are asking.
1. Please clarify what type of form you are using: single/continuous/datasheet/split
2. When you refer to the first line of your forms, do you mean the first record or the first control?
3. Why do you need to set the focus to DateOfPurchase using code?
Have you tried altering the tab order so that control is the first item in the tab order?
faxylady
Jul 08, 2021Copper Contributor
DateofPurchase is the first control of the form. I want the cursor to appear here when a new record is started. Thank you.
- michaelmerlinJul 09, 2021Copper ContributorInstead of writing code, another option might be just setting properties of various controls, most importantly the tab order which is
Tab Index
also combined with these 2 additional properties:
Tab Stop
Enabled- faxyladyJul 09, 2021Copper ContributorThank you for responding.
I don't believe this would work as the form is created from the table.
Remember what I am trying g to do is have the cursor blink on the first control for each new record.- faxyladyJul 09, 2021Copper ContributorWhen the last info is entered and enter is pressed the cursor should go to the first line of the next record. Can you do remote session?