Microsoft access tab control page
Forms and reports. Need more help? Expand your skills. Get new features first. A subscription to help make the most of your time. For up to 6 people.
Premium apps. Try 1 month free. Was this information helpful? Yes No. Thank you! Any more feedback? The more you tell us the more we can help. Can you help us improve?
Resolved my issue. Clear instructions. You can use a tab control to present several pages of information about a single form. A tab control is useful when your form contains information that can be sorted into two or more categories. In most ways, a tab control works like other controls on a form and can be referred to as a member of a form's Controls collection. For example, to refer to a tab control named TabControl1 on a form named Form1, you can use the following expression:.
However, because the Controls collection is the default collection of the Form object, you do not have to explicitly refer to the Controls collection. That is, you can omit the reference to the Controls collection from the expression, like this:. A tab control contains one or more pages. Each page in a tab control is referenced as a member of the tab control's Pages collection.
Each page in the Pages collection can be referred to by either its PageIndex property setting which reflects the page's position in the collection starting with 0 , or by the page's Name property setting. There is no default collection for the TabControl object, so when referring to items in the Pages collection by their index value, or to properties of the Pages collection, you must explicitly refer to the Pages collection. For example, to change the value of the Caption property for the first page of a tab control named TabControl1 by referring to its index value in the Pages collection, you can use the following statement:.
Because each page is a member of the form's Controls collection, you can refer to a page solely by its Name property without referring to the tab control's name or its Pages collection. For example, to change the value of the Caption property of a page with its Name property set to Page1, use the following statement:.
If a user or code changes a page's PageIndex property, the reference to the page's index and the page's position in the page order change. In this case, if you want to maintain an absolute reference to a page, refer to the page's Name property.
OpenForm "frmTestingHelp" Forms! SetFocus DoCmd. GotoPage 0 The form opens, but cannot find the page and results in an error. Improve this question. Erik A Tiffany V Tiffany V 47 1 1 silver badge 6 6 bronze badges. Add a comment. Active Oldest Votes. To select the second page of the tab control TabControl on your form: Forms! Pages 1. SetFocus or preferably, if you don't want to set the focus, Forms! Improve this answer. Andre Andre Class Not Registered Run-time Error Inconsistent Compile Error.
Error Could Not Use. Celebrating our 35th Year of Software Excellence. Vienna, Virginia Privacy Policy Webmaster.
Toggle navigation. Products Microsoft Access Products. All Microsoft Access Products. Total Access Admin. Total Visual Agent. Total Access Analyzer. Total Visual CodeTools. Total Access Components. Total Access Detective. Total Access Memo. Total Visual SourceBook. Total Access Speller. Total Access Startup. Total Access Statistics. Multi-Product Suites. Total Access Ultimate Suite. Total Access Developer Suite. Total Visual Developer Suite. Visual Basic 6 Products.
Total VB Statistics. Total VB Enterprise Suite. Other Products. Sentinel Visualizer. Total ZipCode Database. All Products: Demos, Catalog, Awards, etc.
0コメント