Papa_Bear1
Member
- Local time
- Today, 07:59
- Joined
- Feb 28, 2020
- Messages
- 86
I'm trying to use "data macros" as a basis for performing a trigger-like action in Access (365). Ordinarily I might do this simply with an "After Update" event on the field of interest with some VBA etc., but in this case, I have a split database, where code is running in the back-end, and I'm trying to provide status updates to a user in a front-end. So I figured I'd look into using a trigger of some kind - hoping to make the connection that way.
What I have right now successfully updates a control on a form when I manually change the data in one field of a front-end table, and even when I run a query that changes the data in that same front-end database. But when I run a query in a linked back-end database, that updates that same front-end table, it does not work (i.e., it will not even fire/trigger.) I can't see why it should care how it was changed, if it is basically triggered by a change. I know the data is changing (via breakpoints etc.), but it will not fire the trigger (data macro) action. Is this a known limitation - that this can't work in a split database situation?
Also, while on this same topic - it only works when I base it on the overall table changing, it will not work when I set it to fire based only on the field that I'm actually updating, which seems weird. Why would it not work when coded more precisely to fire based on exactly how I'm changing it? (Table only has one field anyway - so it should work either way.)
Any help would be very much appreciated!
What I have right now successfully updates a control on a form when I manually change the data in one field of a front-end table, and even when I run a query that changes the data in that same front-end database. But when I run a query in a linked back-end database, that updates that same front-end table, it does not work (i.e., it will not even fire/trigger.) I can't see why it should care how it was changed, if it is basically triggered by a change. I know the data is changing (via breakpoints etc.), but it will not fire the trigger (data macro) action. Is this a known limitation - that this can't work in a split database situation?
Also, while on this same topic - it only works when I base it on the overall table changing, it will not work when I set it to fire based only on the field that I'm actually updating, which seems weird. Why would it not work when coded more precisely to fire based on exactly how I'm changing it? (Table only has one field anyway - so it should work either way.)
Any help would be very much appreciated!