比较单独表格上的计算字段 [英] Comparing Calculated fields on seperate forms

查看:52
本文介绍了比较单独表格上的计算字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两种形式[fsubinputvoltage]和[fsubelectronic]具有未绑定的计算字段。这些都是[frmHeaderMaster]的子表单。 [fsubinputvoltage]上的字段是[calcAvailPower],[fsubelectronic]的字段是[calcOutputPower]。在[calcOutputPower]脏或更新时,如果[calcOutputPower]大于[calcAvailPower],我需要一个消息框。有人可以帮忙吗?

解决方案

我相信您只需要使用类似于此的AfterUpdate事件......

展开 | 选择 | Wrap | 行号


我相信你只需要使用类似于此的AfterUpdate事件......

展开 | 选择 | Wrap | 行号


修复了其他问题..好吧,我已经半工作了。如果我放置一个Command按钮并使用以下代码单击它,它将起作用:

展开 | 选择 | Wrap | 行号


I have two forms [fsubinputvoltage] and [fsubelectronic] that have unbound calculated fields. Thes are both subforms to [frmHeaderMaster]. The field on [fsubinputvoltage] is [calcAvailPower] and field for [fsubelectronic] is [calcOutputPower]. On [calcOutputPower] being dirty or updated I need a message box if [calcOutputPower] is greater than [calcAvailPower]. Can someone help?

解决方案

I believe that you would just need to use an AfterUpdate Event similar to this...

Expand|Select|Wrap|Line Numbers


I believe that you would just need to use an AfterUpdate Event similar to this...

Expand|Select|Wrap|Line Numbers


Got other problem fixed.. Okay I have it semi working. It will work if I place a Command button and click on it using the following code:

Expand|Select|Wrap|Line Numbers


这篇关于比较单独表格上的计算字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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