简单数据宏无法在Access中使用 [英] Simple Data Macros not working in Access

查看:217
本文介绍了简单数据宏无法在Access中使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Access 2016,我正在尝试在表的After Insert事件上设置一个简单的数据宏。  我最初想要做的是复制一个特定字段的值并将其放在另一个表中。 但由于这不起作用我决定
尝试更简单的东西,所以试图将值复制到同一个表中的新字段但仍然没有快乐。 我已经尝试过来自各种文本和在线的5个不同的数据宏示例,但没有一个有效。 我在新表和新数据库中尝试了
这些示例,但都没有工作。  我开始想知道Macros是否被禁用了,所以我创建了一个独立的宏,它只是在运行时显示一个消息框,它成功了,所以我知道宏会起作用, 
,但它似乎不是数据宏。 因此,为了让事情变得非常简单,例如,当我在Field1中插入一个值时,我希望Field2的值为30. 以下是我的尝试,惊喜不起作用。 任何人都可以告诉我b $ b我在哪里出错了。 Ta

Hi, I'm using Access 2016 and am trying to set up a simple data macro on a table's After Insert event.   What I originally wanted to do was copy the value of one particular field and place it in another table.  But because that didn't work I decided to try something even simpler so attempted to copy the value to a new field in the same table but still had no joy.  I've tried to the letter 5 different examples of data macros from various texts and online and not one has worked.  I've attempted these examples in new tables and new databases and none work.   I started to wonder if somehow Macros were disabled so I created a stand alone macro that just displays a message box when run which it did successfully, so I know that macros will work,  but it appears just not data macros.  So to keep things really simple for the sake of example, when I insert a value into Field1, I want Field2 to have a value of 30.   Below is my attempt, which surprise surprise didn't work.  Can anyone tell me where I am going wrong. Ta

推荐答案

您好,

根据您的描述,我将您的主题移至Access for Developer论坛:

Based on your description, I will move your thread to Access for Developer forum:

https://social.msdn.microsoft.com/Forums/en- US / home?forum = accessdev

我们建议适当发布的原因是您将获得最合格的受访者群体,并且定期阅读论坛的其他合作伙伴可以分享他们的知识或从与我们的互动中学习。感谢您的理解。

The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.


这篇关于简单数据宏无法在Access中使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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