当我引用其他表时,如何保存在 Access 2003 表单中创建的数据?

发布于 2024-09-07 18:38:48 字数 439 浏览 1 评论 0原文

我不知道如何解决这个问题,但是当我在表单上使用组合框从多个表中选择数据时,我无法保存任何选定的数据。

我尝试使用绑定表单实用程序,但它只要求我“输入参数值”。我取出了代码的“绑定”部分,组合框工作正常。

我有一个不错的小保存按钮,但它实际上并没有保存任何地方。

我尝试使用查询,但这也没有解决问题,当然,除非我没有正确执行查询。

这是“行源”信息...

SELECT SubArea.SubAreaID, SubArea.SubAreaName, SubArea.ProductName FROM SubArea WHERE (((SubArea.ProductName)=Forms![Combo Form]!Product));

我是否需要在 VBA 或宏中添加一些内容才能将所有选择的数据实际保存到表中?帮助!

I'm not sure how to fix this issue, but when I utilize combo boxes on my form which selects data from multiple tables I'm not able to save any of the data selected.

I tried to use the Bound form utility but it only asked me to "Enter Parameter Value". I took out the "Bound" portion of the code and the combo box works fine.

I have a nice little save button, but it doesn't actually save anywhere.

I tried using a query, but that didn't fix it either unless, of course, I didn't do the query correctly.

Here is the "Row Source" information...

SELECT SubArea.SubAreaID, SubArea.SubAreaName, SubArea.ProductName FROM SubArea WHERE (((SubArea.ProductName)=Forms![Combo Form]!Product));

Do I need to put something in VBA or perhaps a Macro to have all the data selected to actually save into a table? HELP!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

牵你手 2024-09-14 18:38:48

对于绑定表单

在设计模式下打开表单,右键单击组合框并转到属性。检查它是否确实绑定到控制源字段中的某些内容。

For the Bound Form

Open the form in design mode, right click on the combo box and go to properties. Check out if it is actually bound to something in the Control Source field.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文