不要去新记录? [英] DON'T go to new record?

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

问题描述

大家好,这里有新手,还有更多问题回来。


我肯定我不是第一个问这个问题但是我不知道怎么回事搜索这个。我搜索的参数没有任何结果。


无论如何,我有一个带有组合框的表单。在组合框上是一个NotInList事件,它打开一个新表单以将项添加到组合框。这非常有效。但是,当用户关闭添加新数据的表单时,它会将主表单提前到新记录。如果用户还没有填写原始记录的所有信息,这是不好的。


是否有任何方法可以阻止Access进入新记录直到用户点击按钮转到新记录?


谢谢!

melissa

Hi all, newbie here, back again with more questions.

I''m sure I''m not the first to ask this but I''m not sure how to search for this one. Nothing turned up with the parameters I searched under.

Anyway, I have a form with a combo box. On the combo box is a NotInList event that opens a new form to add an item to the combo box. This works great. However, when the user closes the form that adds new data it advances the main form to a new record. This is not good if the user hasn''t finished filling out all the info for the original record.

Is there any way to keep Access from advancing to a new record until the user clicks on the button to go to a new record?

Thanks!
melissa

推荐答案

如果我不得不猜测,我会说你正在重新拼写整个表格,而不仅仅是添加记录后的组合框。

当然,如果你发布代码我就不必猜测。
If I had to guess, I would say you are requerying the entire form and not just the combobox after the record is added.
Of course, if you post the code I wouldn''t have to guess.


有趣的。

正如MSeda所说,这完全取决于新表格的打开方式以及以哪种顺序发生的事件。

请发布代码供我们查看。

BTW any .Requery调用特别有趣,所以应该包括在内。
Interesting one.
As MSeda says, it all depends on how the new form is opened and which events happen in which order.
Please post the code for us to look at for you.
BTW any .Requery calls are particularly interesting so should be included.


嘿谢谢寻找!


我在这个表单上有很多代码用于各种各样的事情,但这是代码引用的新代码表单启动时的电源线:
Hey thanks for looking!

I have lots of code on this form for various things but this is the code that refers to the new record when the form is launched:
展开 | 选择 | Wrap | 行号


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

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