Mike...
I have tried that way...no go.
The reason it is set up the way it is … as I outlined above...there are three text boxes inside the frame. These three text boxes are only used for a very specific need, and that need is very rare. I put them in the frame so that the end user would not need to enter/tab through them when data entering. I still need to capture the data if this need arises.
What I am trying to do is...If that rare occasion does come up, and the end user needs to enter these values, after entering the second, and the third is generated through code (1+2=3) the focus would then be set to the command button that adds the data to the sheet where everything else takes place.
The frame is set to tabstop = false so that when the end user is inputting data, and they do not need these fields, he tab order will just jump past directly to the same command button.
Currently, the cmd button is the next in the tab order after the last field in the normal input process. however, when I do enter the frame fields and enter data and the afterupdate event runs, the focus jumps to the very first field in the form outside of the frame.
Yes...The 1+2=3 action takes place after the second field's data has been entered and the end user presses he enter/tab button. The third field is enabled, but locked, so no other action is available to the user. Should I maybe use the EXIT event for the action? I am open to ideas...
I am attaching a pic of the userform. The three fields are at the bottom above the yellow info line. Parental Leave Start Date, NO of Days and End Date. THe End Date is auto calculated.
You can't see the frame because I have it that way on purpose...no need for it to show.
I could show you the calculated code in the afterupdate of the second box, but it is a simple "dateadd" to generate the End Date... This could easily be moved to an Exit event instead if the end result would be met to set the focus on the "Click to Continue" button.
I am open to any ideas, but I really don't think it is possible to do what I want without some kind of crazy API work or something else that is WAAAY! outside my skill level. From what I have found in my research, it seems like the frame thing is just a design goof by Microsoft.
Sorry for the run on, just trying to be as thorough as possible...
It really isn't a show stopper, as the end user can simply click on the cmd button manually and complete the action. To be honest, at this point it has become more of a challenge to get it to bend to my will that anything else.