如何以现有形式显示新添加的记录? [英] How to make a newly-added record show up in an existing form?

查看:84
本文介绍了如何以现有形式显示新添加的记录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的IURs数据库中( ADezii ,你可能仍然有一个很好的后端),我不希望我的用户能够更改图表编号字段,但我做希望他们能够添加新的。 (在后来的版本中,我想添加一个模块以允许受控修改,但是目前我已将该字段锁定,因为用户无意中更改了它而不是搜索它。)


我有一个允许添加图表编号的表单,我希望当前打开的表单(基于图表编号)反映添加而不需要要求用户退出表单并重新输入它。


我有一个Requery声明,我认为它应该去,但它似乎没有做我想要的。


这里是添加新图表#的代码OnClick主表单上的控制按钮(患者/ IUR概述):

展开 | 选择 | Wrap | 行号

解决方案

尝试

展开 | 选择 < span class =codeDivider> | Wrap | 行号


我会使用以下任何一种:

展开 | 选择 | Wrap | 行号


@NeoPa:感谢您抓住空间,从未抓住它! (LOL)。

In my IURs database (ADezii, you probably still have a good back end for this), I don''t want my users to be able to change the Chart Number field, but I do want them to be able to add new ones. (In a later incarnation, I want to add a module to allow a controlled modification, but currently I have that field Locked because users have inadvertently changed it instead of searching on it.)

I have a form that allows the addition of just a chart number, and I want the currently-open form (based on chart numbers) to reflect the addition without requiring the user to exit the form and re-enter it.

I have a Requery statement where I think it should go, but it doesn''t seem to be doing what I want.

Here''s the code OnClick for the "Add New Chart #" Control button on the main form ("Patient/IUR Overview"):

Expand|Select|Wrap|Line Numbers

解决方案

Try

Expand|Select|Wrap|Line Numbers


I would use either of :

Expand|Select|Wrap|Line Numbers


@NeoPa: Thanks for catching the Space, never caught it! (LOL).


这篇关于如何以现有形式显示新添加的记录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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