通过表单文本框更新表更改为子表单公式 [英] Updating Table through Form Textbox change with Subform formula

查看:89
本文介绍了通过表单文本框更新表更改为子表单公式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Access 2010.  我正在尝试在文本框[Y]或[N]中更改时自动更新表格字段(System1)。此(S1)文本框由控制源= IIf填充(IsNull([SYSTEM1_PD_SUBFORM]。[Form]![txtCnfirm1_ID]),"N","Y")

I'm using Access 2010.   I'm trying to automatically update a table field (System1) upon change in a textbox [Y] or [N]. This (S1)textbox is populated by the control source =IIf(IsNull([SYSTEM1_PD_SUBFORM].[Form]![txtCnfirm1_ID]),"N","Y")

所有其他形式&子表格条目由于与其他表格有界而更新表格。

All other form & subform entries update the table due to being bounded to other tables.

汇总表格如下所示

p1 n1 e1 s1 s2

p1 n1 e1 s1 s2

50 df ry YN

50 df ry Y N

system1 table

system1 table

sid pid cnfrmID

sid pid cnfrmID

其中正在检查cnfrmID

where cnfrmID is being checked

如何使用活动?更改S1文本框以更新摘要表?

How can I use an event change for the S1 textbox to update the summary table?

推荐答案

不幸的是,代码不会触发事件,因此尝试使用S1文本框中的事件可能无法正常工作。相反,您可以尝试使用子表单文本框中的事件。

Unfortunately, code does not trigger an event, so trying to use an event from the S1 Textbox will probably not work. Instead, you might try using an event from the subform's Textbox.

只需要我的2美分......

Just my 2 cents...


这篇关于通过表单文本框更新表更改为子表单公式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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