Full Version: moving between tabs
UtterAccess Forums > Microsoft® Access > Access Forms
williams9969
Hello all-
know I have seen this done..I just can't find the example.
Does anyone have info on moving between tab controls both programatically and user (not using the tabs...but other)
Thanks in advance
DWilliams
schroep
To programmatically change which tab is displayed, you can:
) Set the value of the tab control itself. Pages are 0-based. So, if your tab control was named "tabMain" and you wanted to go the the third tab:
tabMain = 2
2) Set the FOCUS to a control on the page you want to go to. For example, if the textbox control "txtAddress1" was on the third tab, the following would change the tab to that page and set the focus to that control:
txtAddress1.SetFocus
williams9969
Worked great..I am reading into this to much. That was an extremely easy ask.
appreciate your help:)
VR
DWilliams
schroep
Glad to help.
williams9969
Oops..before you posted..I had something to add....
That if the control I wanted tto give focus to was on a subform.
How would I put that>
Me.Page200.NCOERTypeID.SetFocus doesn't work obviously....how would I put this?
Thanks for any help I can get
V/R
DWilliams
schroep
The syntax is:
e.nameofsubformcontrol.Form.nameofcontrolonsubform.SetFocus
williams9969
got it...thanks a million.....
r
dw
schroep
Happy to help.
This is a "lo-fi" version of UA. To view the full version with more information, formatting and images, please click here.