Share via

Run-time error "3892"

Anonymous
2017-05-26T12:53:14+00:00

"The function "|" is not valid for expressions used in data macros"

I'm new to data macros. I have all forms and scripts contained in a front end ACCDB.  Data tables contained in a linked back end ACCDB.

I just created a simple data macro against a table in the back end.  All it does for now is run MsgBox if the record is modified.

If I manually modify a record in the back end, the data macro works fine.

However, If I use the preexisting front end forms to modify a record in that table, I get the 3892 error.  Removing the macro, the error goes away.  Nothing in my macro uses "|".

The error is triggered on the following pre-existing line of code in the front end.

   RunCommand acCmdSaveRecord

thanks

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Tom van Stiphout 40,211 Reputation points MVP Volunteer Moderator
2017-05-26T13:33:50+00:00

Data macros have no UI, because they run in the data layer and there may be nobody to observe it. Below screenshot shows the available macro actions. Stick with those.

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful