本文介绍了将ControlSource属性与表达式一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我在连续表单上有一个文本框,我想显示一个计算值。我设置了ControlSource Property = [text1]& "〜" &安培; [text2]。 我希望我的用户能够更正此值,我将使用VBA代码取消计算。 根据Access(2000)帮助,我可能有一个ControlSource的表达式,控件显示由表达式生成的数据。该数据可由用户更改,但不保存在数据库中。这很好,但我不能让它发挥作用。可以捕获LostFocus,Click,MouseDown,Enter,Exit等事件,但不能在文本框中输入任何内容。我得到一个有吸引力的铃声。 当然,我的实际问题更复杂,但这个简单的例子很好地说明了它。表: 1 AAA aaa 2 BBB bbb 3 XXX xxx 表格有3个文本框,带有ControlSources = text1,text2和[text1]& "〜" &安培; [text2] 这里有什么帮助吗? OldBirdmanI have a textbox on a continuous form that I want to display a calculated value. I have set the ControlSource Property = [text1] & "~" & [text2].I would like to have my user be able to correct this value, and I will un-calculate it using VBA code.According to Access(2000) Help, I may have an expression for a ControlSource, "The control displays data generated by an expression. This data can be changed by the user but isn''t saved in the database." This is good, but I can''t make it work. Events such as LostFocus, Click, MouseDown, Enter, Exit can be trapped, but nothing can be entered into the textbox. I get an attractive chime sound.Of course, my actual problem is more complex, but this simple example illustrates it nicely. Table:1 AAA aaa2 BBB bbb3 XXX xxxForm has 3 textboxes, with ControlSources = text1, text2, and [text1] & "~" & [text2]Any help here?OldBirdman推荐答案 展开 | 选择 | Wrap | 行号 展开 | 选择 | Wrap | 行号 表达式还将为连续表格中的每个记录生成唯一值。The Expression will also generate unique values for each Record in the Continuous Form. 这篇关于将ControlSource属性与表达式一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
06-15 05:43