Re: Tab Control Code Question



Keith Wilby wrote:
What code to I need to return the name of the *current* page on a tab
control? I can return the name of a specific page using (for example)

strCriteria = Me.tabDiscipline.Pages(0).Name

but how do I get the *current* page in the Change event of the tab
control?
Many thanks.

Keith.


This will give you the name you assigned to the selected tab:
Forms.FormName.tabCtlName.Pages(Forms.FormName.tabCtlName).Name

This will give you the index of the selected tab: Forms.FormName.tabCtlName



.



Relevant Pages

  • Re: Tab Control Code Question
    ... "DFS" wrote in message ... strCriteria = Me.tabDiscipline.Pages.Name ... This will give you the index of the selected tab: ...
    (comp.databases.ms-access)
  • Re: Custom controls that contain other controls
    ... but it's also valid in a custom control. ... users to drag controls onto my tab control. ... border: 3px outset; ... You selected Tab One ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)
  • Re: Tip - Possible fix for "Microsoft Office Cant Find the Field X referred to in your expressio
    ... Keith Wilby wrote: ... can't access a field from a report's underlying query or table ... unless it has been bound to a control somewhere on the report. ...
    (microsoft.public.access.reports)
  • Re: Finding value in Form Load event
    ... I also replaced Set rst = Me.Recordset.Clone with Set rst = Me.Recordsetclone ... Try putting MsgBox strCriteria after you define it to see. ... a combo box control. ...
    (microsoft.public.access.gettingstarted)
  • Re: Adding Com component
    ... It is showing in the toolbox, ... the component will appear in the toolbox under the selected tab (probably after all other components ... >> The calendar control is not a web component and cannot be used on ASP.NET pages. ... >> Dave Sexton ...
    (microsoft.public.dotnet.general)