计算机控件上的计算标题 [英] calculated caption on tab control

查看:85
本文介绍了计算机控件上的计算标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的标签控件上使用标题的计算函数。我用
使用以下代码:


Me.Page28.Caption =" Expenses [" &安培; [ExpenseEntryCount]& "]"


这应该显示以下内容:"费用[10]其中10是该页面上的数字

。在我的表单上,我有一个名为

''ExpenseEntryCount'的计算控件正确显示此信息。


如果我将此代码放在OnOpen表单中, OnActivate或OnCurrent事件,

打开表单时,选项卡显示为费用[]在

括号中没有数字。但是,如果我将相同的代码放在

选项卡控件的onClick事件中,当我单击选项卡右侧的空白区域时,

标题会从"费用[]到费用[10]。如果我在实际页面的OnClick事件中放入相同的代码,则它不起作用。

给出了什么?我做错了什么还是我尝试了一个不可能的壮举?

I want to use a calculated function for the caption on my tab controls. I
used the following code:

Me.Page28.Caption = "Expenses [" & [ExpenseEntryCount] & "]"

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
''ExpenseEntryCount'' 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?

推荐答案

尝试将您对ExpenseEntryCount的表达式放入

Me.Page28.Caption。计算出的控制似乎为时已晚。


Jimmy Stewart schreef:
Try putting the expression you have for the ExpenseEntryCount into
Me.Page28.Caption. The calculated control seems to be too late.

Jimmy Stewart schreef:

我想使用计算函数我的标签控件上的标题。我用
使用以下代码:


Me.Page28.Caption =" Expenses [" &安培; [ExpenseEntryCount]& "]"
I want to use a calculated function for the caption on my tab controls. I
used the following code:

Me.Page28.Caption = "Expenses [" & [ExpenseEntryCount] & "]"



-

Bas Cost Budde

荷兰

--
Bas Cost Budde
Holland


我不确定我明白你的意思。我试图将该代码放在

表格的OnOpen事件中,标题文本是正确的但是没有进行

计算。

" Bas Cost Budde" < b。********* @ dev.null.com写了留言

news:ef ********** @ localhost.localdomain ...
I''m not sure I understand what your saying. I have tried to put that code in
the OnOpen event of the form and the caption text is correct but the
calculation is not made.

"Bas Cost Budde" <b.*********@dev.null.comwrote in message
news:ef**********@localhost.localdomain...

尝试将您对ExpenseEntryCount的表达式放入

Me.Page28.Caption。计算出的控制似乎为时已晚。


Jimmy Stewart schreef:
Try putting the expression you have for the ExpenseEntryCount into
Me.Page28.Caption. The calculated control seems to be too late.

Jimmy Stewart schreef:

>我想使用计算函数对于我的选项卡控件上的标题。我使用了以下代码:

Me.Page28.Caption =" Expenses [" &安培; [ExpenseEntryCount]& "]"
>I want to use a calculated function for the caption on my tab controls. I
used the following code:

Me.Page28.Caption = "Expenses [" & [ExpenseEntryCount] & "]"



Jimmy Stewart写道:
Jimmy Stewart wrote:

我''我不确定我明白你的意思。我试图将

代码放在表单的OnOpen事件中,并且标题文本是正确的

但是没有进行计算。
I''m not sure I understand what your saying. I have tried to put that
code in the OnOpen event of the form and the caption text is correct
but the calculation is not made.



您是否尝试过当前活动?


-

Rick Brandt,Microsoft Access MVP

电子邮件(视情况而定)至...

在Hunter dot com的RBrandt

Have you tried the Current event?

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


这篇关于计算机控件上的计算标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆