![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a form where on current, it evaluates some fields to determine which page on a tab control should be displayed and which should be hidden. If I cycle through the records using the navigation buttons, the focus will remain on the "ID" field if the tab control remains on the same page. (The ID field is not part of the tab control). Once it reaches a record that requires a different tab to display, it takes the cursor down to the first field in the tab control. I've attempted to change the tab order to put the ID field first, and have tried DoCmd.GoToControl me.ID with no success. The biggest problem this is presenting for the users is the search function. When they hit "find next", it is no longer focused on the proper control. Overall, I don't necessarily want to put the focus back on a hardcoded control. I need it to recognize that it is no longer on the same control and to return to the previous. Thanks to anyone who can help out. |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
I'm going with the first option of me.[ID].setfocus. This will be okay in most cases because they will most often be searching the ID field. It would be perfect if it could recognize that it moved to a different control and set the focus back to the previous control. Thanks so far. |
![]() |
| Thread Tools | |
| Display Modes | |
| |