Tab Controls

S

spalj

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?
 
S

spalj

Sorry Rick but I'm naving problems with the syntax. Tab control name is
tbctlLocations.
 
R

Rick Brandt

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.
 
S

spalj

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?
 
V

Van T. Dinh

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"
 
S

spalj

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?
 
Top