Tab Controls

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a tab control in a form with several pages. I want to give the user an
additional visual confirmation of what page they are currently working on by
adding a control source equal to the current page of the tab control. Any
ideas?
 
spalj said:
I have a tab control in a form with several pages. I want to give the
user an additional visual confirmation of what page they are
currently working on by adding a control source equal to the current
page of the tab control. Any ideas?

=TabControlName.Pages(TabControlName.Value).Caption

(or .Name if you prefer)
 
spalj said:
Sorry Rick but I'm naving problems with the syntax. Tab control name
is tbctlLocations.

I did test the expression. With that name it would be...

=tbctlLocations.Pages(tbctlLocations.Value).Caption

I assume you are using this as the ControlSource of a TextBox? That's what
I tested.
 
I'm obviously doing something wrong, when I enter the expression into the
control source for the text box, it is changed to
=[tbctlLocations].[Pages]([tbctlLocations].[Value]).[Caption]. I must be
entering something wrong, do I need quotes?
 
The expression should work fine with square brackets. Here is the
ControlSource that works in my database:


=[tcLeft].[Pages]([tcLeft].[Value]).[Caption]

My TabControl is "tcLeft"
 
Thanks, I created a new form and tested it sucessfully. Its still not working
in the original form for some reason but at least I know how to do it know,
thanks for the help both of you.

Van T. Dinh said:
The expression should work fine with square brackets. Here is the
ControlSource that works in my database:


=[tcLeft].[Pages]([tcLeft].[Value]).[Caption]

My TabControl is "tcLeft"

--
HTH
Van T. Dinh
MVP (Access)


spalj said:
I'm obviously doing something wrong, when I enter the expression into the
control source for the text box, it is changed to
=[tbctlLocations].[Pages]([tbctlLocations].[Value]).[Caption]. I must be
entering something wrong, do I need quotes?
 
Back
Top