刷新表格 [英] refresh a form

查看:65
本文介绍了刷新表格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我熟悉Me.Refresh,但你如何定位另一个表格要刷新?


换句话说,如果我在客户上有一个记录订单数量的文本框CustomerX有,然后我进入订单记录并更改订单数量,我想关闭订单表格并在客户表格上查看更新。


我试过关于订单表格的近似事件


表格!frm_Customers.Refresh但它没有用。我需要瞄准控制箱吗?或者做其他事情?

I am familiar with Me.Refresh but how do you target another form to be refreshed?

In other words, if I have a textbox on Customers that records the number of orders that CustomerX has, then I go into the Orders record and change the number of orders, I want to close the Orders form and see the update on the Customers form.

I tried in the on close event of the orders form

Forms!frm_Customers.Refresh but it didn''t work. Do I need to target the control box? Or do something else?

推荐答案

尝试重新查询而不是刷新

Forms!frm_Customers.form.requery
Try requery instead of refresh
Forms!frm_Customers.form.requery



我熟悉Me.Refresh,但你如何定位另一个表格进行刷新?


换句话说,如果我在客户上有一个记录CustomerX订单数量的文本框,然后我进入订单记录并更改订单数量,我想关闭订单表单并在客户表单上查看更新。


我在订单表格的关闭事件中试过了


表格!frm_Customers.Refresh但它没有用。我需要瞄准控制箱吗?或者做点什么?
I am familiar with Me.Refresh but how do you target another form to be refreshed?

In other words, if I have a textbox on Customers that records the number of orders that CustomerX has, then I go into the Orders record and change the number of orders, I want to close the Orders form and see the update on the Customers form.

I tried in the on close event of the orders form

Forms!frm_Customers.Refresh but it didn''t work. Do I need to target the control box? Or do something else?



客户表上的文本框究竟记录了CustomerX的订单数量?请发布代码,或提供解释。

How exactly does your Text Box on the Customers Table record the number of Orders that CustomerX has? Please post the code, or provide an explanation.


好吧,它实际上是一个可以附加许多标本的夹带表格。 Entrainment表单上文本框控件源的代码是:
Okay it''s actually an Entrainment form that can have many Specimens attached to it. The code on the control source of the textbox on the Entrainment form is:
展开 | 选择 | Wrap | 行号


这篇关于刷新表格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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