Access DB Question...

Status
Not open for further replies.

akmad

Smack-Fu Master, in training
72
Does anyone know of a way to determine the last time a table was updated (that is the data changed, added, or removed; not structure changes) without restricting access to the table from just a form?

I was expecting the DateUpdate field of the msysobjects table to take care of that for me but it only seems to keep track of structural changes to tables. I have looked for some type OnChange event (or any event for that matter) for a table but have not been able to find anything.

Searches on MS KB and Google came up with nothing so I figured I'd see what advice I could get here.

I know that most of the more powerful db systems have mechanisms for doing this kind of thing but switching this from Access to one of those is not an option so none of the "Get a rid of Access" remarks please. My responsibilities are split between Oracle and Access so believe me, I know how correct all those remarks are.
 

Schmutzig

Wise, Aged Ars Veteran
151
You could throw some code in there that would do this manually by creating an INSERT/UPDATE trigger on the table that modifies the "last updated" date in another table - probably using some sort of a master "last updated" table that you've created.

Or, you could try adding a "last updated" column to every table and have a trigger update that. Then you could select the max value out of the column, or sort to see when they were all updated...

HTH
 

HL7

Ars Praefectus
3,523
Subscriptor++
Originally posted by akmad:
colema19: I guess I'm out of luck then as I was hoping to let people (well my boss) continue to use the data grid for entering data. Oh well, the price you pay when you use access...
Just create a form that looks like a grid. Place the text boxes side by side, and make the form very short, and set the "Display" property to "Continuous Forms."

Or, just show the form in datasheet view -- although I can't recall if this prevents events from firing.
 
Status
Not open for further replies.