使用宏访问表更新 [英] access Table Update using macro
本文介绍了使用宏访问表更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨.
我的问题是...
我有Access数据库.然后创建访问表单以将数据添加到表中.
在我的情况下,table1有组合框.该组合框包含两个值(IN,OUT)
如果我们选择组合框值作为IN,那么我需要更新table2列值.
我如何使用宏或VBA做到这一点...
谢谢..
Hi.
My problem is...
I have Access database. and I create access forms to add data to the tables.
In my case table1 have combobox. This combobox contain two value (IN, OUT)
If we select combobox value as IN then I need to update table2 column value.
how can i do this using macro or VBA...
Thanks..
推荐答案
有两种通用方法可以实现此目的.一种是将数据绑定到表单,另一种是使用从表单后面的事件调用的SQL语句(无论是通过查询还是手工编码的),例如处理"按钮的on click事件或类似的事件...
There are two general ways to achieve this. One is to bind the data to your form, the other is to use a SQL statement (whether that''s by query or hand coded) called from an event behind the form, say the on click event of a Process button or something similar...
这篇关于使用宏访问表更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文