在另一个表中更新记录后,使宏创建记录 [英] Making a macro to create a record after the update of a record in another table

查看:85
本文介绍了在另一个表中更新记录后,使宏创建记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有tbl1和tbl1

I have tbl1 and tbl1

tbl1

ID1( PK)

price1

tbl2

ID2

price2

当我在tbl1中有现有记录并且我更改价格时,我想要一个宏来运行,它在tbl2中创建一个记录与tbl1中更改的记录相同的ID,以及更改前的价格(为了创建一种价格变更的历史记录)

When I have an existing record in tbl1 and I change the price, I want a macro to run that creates a record in tbl2 with the same ID as the altered record in tbl1, and also the price before it was changed (in order to create a kind of history of price alterations)

任何帮助将不胜感激

谢谢

推荐答案

听起来像你'重新寻找创建数据宏。如果是这样,请查看
Scott的博客文章

Sounds like you're looking to create data macros. If so, take a look at Scott's blog post.

希望它有所帮助......

Hope it helps...


这篇关于在另一个表中更新记录后,使宏创建记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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