基于Combobox重新获取Recordset [英] Requerying Recordset Based on Combobox

查看:48
本文介绍了基于Combobox重新获取Recordset的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试重新查询记录集,以便表单根据组合框更改记录。在'Open事件的形式我正在使用这段代码:

I am trying to requery a recordset so that a form changes record based on a combobox. In the form''s Open event I''m using this code:

展开 | 选择 | Wrap | 行号

推荐答案

您是否尝试过:
Did you try:
展开 | 选择 | Wrap | 行号


@ nico5038

你是什么意思?只是在模块中有代码吗?


另外,如果我只是在我的OP中执行上面的代码,我添加了错误消息:当不允许操作时对象已关闭。
@nico5038
How do you mean? Just have that code in the module?

Also, I added the the error message that I get if I just execute the code above in my OP: "Operation is not allowed when the object is closed".


此命令将在激活后重新查询您的表单。


错误消息看起来好像有一些代码关闭表格。根据事件顺序检查你的代码来解决这个问题。


当粘贴(部分).mdb时我可以看看。


Nic; o)
This command will requery your form after activation.

The error messages does look like you''re having some code to close the form. Check your code against the event sequence to solve this.

When stuck attach (part of) the .mdb so I can have a look.

Nic;o)


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

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