将另一个搜索/修改添加到DAO记录集搜索 [英] Adding another search/modify to DAO recordset search

查看:64
本文介绍了将另一个搜索/修改添加到DAO记录集搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Twinnyfo的帮助下,我能够进行记录搜索并运行。现在,我还需要一些帮助。如何在当前搜索期间或之后搜索第二张表格。


一旦在罗氏中进行主要搜索。表我需要在MaterialNum中进行另一次搜索。表。对以下代码的任何其他帮助或指示将非常感激。

With Twinnyfo''s help I was able to get a record search up and running. Now, I need some more help. How can I search on a second table either during or after my current search.

Once the main search in the "Roche" table I need to do another search in the "MaterialNum" table. Any other help or pointers on the following code would be most appreciated.

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

推荐答案

好的,我想我到了那里。


修改上面的代码以添加一个新的var(rst1)并将其设置为查看我的MaterialNum。 table。

Ok, I think I am getting there.

Modified the above code to add a new var (rst1) and set that to look at my "MaterialNum" table.

展开 | 选择 | Wrap | < span class =codeLinkonclick =LineNumbers(this);>行号


您好Abhean。

.AddNew()没有创建新记录。它会创建一个缓冲区空间,以便您填充Fields的数据,然后调用 .Update()将该数据提交到表中。如果没有第二步,则表中没有添加任何内容(记录集)。
Hi Abhean.

.AddNew() doesn''t create a new record. It creates a buffer space in order for you to populate the Fields'' data and then call .Update() to commit that data to the table. Without the second step nothing is added to the table (recordset).


非常感谢。刚刚想出更新,但决定打开一个基于MaterialNumber的表单,以便用户可以填写该表上的整个记录​​。看起来像:

Many thanks. Had just figured out the update, But decided to open a form based on the MaterialNumber so the user could fill out the entire record on that table. Looks like:

展开 | 选择 | Wrap | 行号


这篇关于将另一个搜索/修改添加到DAO记录集搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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