Access Runtime and Data Macros

I want to maintain Creation and Update dates at a record level. I have in the past used the before event but have experienced some issues with this method - that is updated Update date when no change has taken place.

To that end I was thinking of using the Data Macro - before change event to control this. I have tested on a simple Front End form with subform that links to to a backend with the two tables that have the data macro. It works just fine.

However, has anyone successfully tested Data Macros in a Access 2010 Runtime environment and are there any tips or tricks to making it work?
ynot8669OwnerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
AFAIK you can't use Data Macros in a DESKTOP database in 2010.  Those are specific to web databases.

You could very likely modify your current BeforeUpdate code to correctly identify instances where you need to modify the audit trail and where you don't, but we'd have to see the code first.

Allen Browne has an excellent writeup on creating audit trails:

http://allenbrowne.com/AppAudit.html
0
ynot8669OwnerAuthor Commented:
That's confusing as I have used them in my desktop test application with the Non-runtime "developer" Access 2010 Version.

See the attached --- albeit basic - manual relink the FE to Database2 which has the Data Macros --- add and change record on either the main form or subform and watch the dates change
DataMacTest.zip
0
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
My bad - that's completely wrong. You can use them with the desktop version.

Have your test results shown this to NOT work correctly? In general, the runtime will do everything the retail version will do with the obvious exceptions (i.e. Design mode, etc).
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

DatabaseMX (Joe Anderson - Microsoft Access MVP)Database Architect / Systems AnalystCommented:
"AFAIK you can't use Data Macros in a DESKTOP database in 2010"
Yeah, you bad, LOL.

I have tested DMs on recordsets of 1 million records - and they seem to work well. My test scenario was a audit trail situation.  This is certainly an area where DMs would excel - considering the code you would have to write otherwise.

mx
0
ynot8669OwnerAuthor Commented:
Thanks for the input ...I've obtained the runtime to install on another tablet so I'll test further then award points
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ynot8669OwnerAuthor Commented:
To be readressed at a later date
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.