引用“多个项目”形式的字段 [英] refering to a field in a 'multiple items' form
本文介绍了引用“多个项目”形式的字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望更改当前记录中以多项形式显示的字段的背景颜色。但是当使用 me.fieldname01.backcolor = 时,会对多个项目表单上名为fieldname01的所有字段进行引用,因此所有字段都会更改颜色,而不仅仅是当前记录。
如何用名为fieldname01的字段引用当前记录?
谢谢:)
i wish to change the backcolor of a field on a current record being dispalyed in a ''multiple items'' form. However when using me.fieldname01.backcolor = makes refrence to all fields called fieldname01 on the ''multiple items'' form and therefore all fields change colour not just the current record.
How do i refer to the current record with field named fieldname01?
Thanks :)
推荐答案
Reginald。
我猜您的意思是数据表或连续表格视图。
您可以使用条件格式来实现此目的。
- 一种特殊的条件格式类型是control have focus
- 您可以使用其他绑定复选框控件来触发条件格式(确保这意味着您需要将此字段添加到表单中'格式条件下的
Hi, Reginald.
I guess you mean Datasheet or Continuous forms view.
You may use conditional formatting to achieve this.
- a special conditional format type is "control has focus"
- you may use additional bound checkbox control to trigger conditional formatting (sure that means you need to add this field to the form''s bound table)
in format condition
展开 | 选择 | Wrap | 行号
感谢您的回复鱼
你的非常正确我有继续表格视图中的表格。我有一个绑定的表单上的复选框。单击此复选框时,我将更改颜色中的所有字段以改变颜色,这是一种在所选记录中突出显示的方式。让我们说它被称为chkMark。
我被你展示的代码抛出,我是knida希望有一个当前记录。 rahter比我可以使用 me。。
我不明白你提到的代码是如何实现的。而且我很困惑me.f3意味着什么。
我试过把
thanks for your reply Fish
your quite right i have the form in continues form view. I have a check box on the form which is bound. When this check box is clicked i what all the fields in that perticular record to change color, a way of highlightin a chosen record. Lets just say it is called chkMark.
I''m a bit thrown by the code you showed, i was knida hoping there was a currentrecord. rahter than a me. that i could use.
I don''t understand how the code you mentioned achives this. and i''m very confused what me.f3 means.
I tried putting
< span class =codeLinkonclick =Blur(this,this.parentNode.parentNode,getChildren(this),true);>展开 | 选择 | Wrap | 行号
雷金纳德。
好的。下面是一个固定的代码,有一些解释。
Hi, Reginald.
Ok. Below is a fixed code with some explanations.
展开 | 选择 | Wrap | 行号
这篇关于引用“多个项目”形式的字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文