在另一个表中更新数据 [英] Updating Data In Another Table
本文介绍了在另一个表中更新数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
对我来说是另一个悲剧;
我有一个名为访问表单的表单,其记录源是访问表;这包含一些类似的字段,如注册表;例如学校;所以我想知道如果我在访问表格中为田间学校输入一个值,我该如何更新注册表。
谢谢
Another tragedy for me;
i have a form called visit form whose record source is visit table; this contains some similar fields like the Registry; forexample school; so i would like to know if i enter a value for the field school in the Visit form, how do i update the registry table.
Thanks
推荐答案
使用更新查询;在名为Query的菜单中从查询设计器中选择它!
:)
Hi,
Use an Update query; Select it from Query designer in the menu named Query!
:)
谢谢它的工作。但是有一个vb可以自动完成吗?
Thanks it worked. However is there a vb that can do it automatically?
你好,
这样做可以:
设置mydb = CurrentDb()
设置Myquery = mydb.CreateQueryDef(" My_query"," SELECT my_field FROM My_table;")
:))
Hi,
This can do it:
Set mydb = CurrentDb()
Set Myquery = mydb.CreateQueryDef("My_query", "SELECT my_field FROM My_table;")
:)
这篇关于在另一个表中更新数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文