I want to use a calculated function for the caption on my tab controls. I
used the following code:
Me.Page28.Capti on = "Expenses [" & [ExpenseEntryCou nt] & "]"
This should display the following: " Expenses [10] " where 10 is the number
of expenses on that page. On my form I have a calculated control named
'ExpenseEntryCo unt' that correctly displayd this information.
If I place this code in the forms OnOpen, OnActivate or OnCurrent event,
when the form is opened the tab reads " Expenses [] " with no number in the
brackets. If however, I place this same code in the onClick event for the
tab control, when I click the blank space to the right of the tabs, the
caption changes from " Expenses [] " to " Expenses [10] ". If I put that
same code in the OnClick event for the actual page, it does not work. What
gives? Am I doing something wrong or am I attempting an impossible feat?
used the following code:
Me.Page28.Capti on = "Expenses [" & [ExpenseEntryCou nt] & "]"
This should display the following: " Expenses [10] " where 10 is the number
of expenses on that page. On my form I have a calculated control named
'ExpenseEntryCo unt' that correctly displayd this information.
If I place this code in the forms OnOpen, OnActivate or OnCurrent event,
when the form is opened the tab reads " Expenses [] " with no number in the
brackets. If however, I place this same code in the onClick event for the
tab control, when I click the blank space to the right of the tabs, the
caption changes from " Expenses [] " to " Expenses [10] ". If I put that
same code in the OnClick event for the actual page, it does not work. What
gives? Am I doing something wrong or am I attempting an impossible feat?
Comment