Why would you want to do this? As Access stores the data on disk, it has to abide by the operating system rules on file modifications. If you need to check the date for datas sake, then this information should be on the tables themselves. In other words, you should supply created/changed fields which store the details of the time the data item was created/updated.
I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be
If you open a table in an Access database, even if all you do is open it and never run a select query or anything, then Access modifies the mdb file, so the file timestamp will change. That is the way Access works, and there is nothing you can do about it.
As someone else has already pointed out, if you need to know when the data was last updated then you should build it in to your application in one way or another.
I'm not sure how you would get table modifications, however getting RECORD modifications is a VERY simple excercise, you do have a number of options. ALL of them require additional columns/fields to be added to the tables you want to monitor.
We monitor all tables so we have a Modified and ModifiedBy on all tables.
Add a timestamp field to the table and trigger it every time a record is saved, I think you can trigger this in access, not sure anymore.
From your UI pass in the userid and datetime whenever you write back to the database.
In your update/insert query automatically gather the current user and the datetime and add then to the update/save
Never underestimate the power of human stupidity
I am comparing data between 2 tables looking for what exists in one so i can then enter whatis found into the second table as follows...
$query_find_all = "SELECT hankypark.ID FROM hankypark LEFT JOIN tbl_ply_hankypark ON hankypark.ID = tbl_ply_hankypark.Song_ID WHERE (((tbl_ply_hankypark.Song_ID) Is Null))";
$find_all = mysql_query($query_find_all, $Chartmenu) or die(mysql_error());
$row_find_all = mysql_fetch_assoc($find_all);
$totalRows_find_all = mysql_num_rows($find_all);
in the hankypark table i know will be entries that do not exist in the tbl_ply_hankypark table hense the Is Null query which gives me an array of the ID field, I now want to add those ID's to the tbl_ply_hankypark table. Question is what do I use to roll through all the ID's found ?
My INSERT query looks like this...as said what do use tat the begining is it a...
while or do or what?? and how should it be properly laid out please? not having played with arrays I have tried several things from suggestions on the net but none seem to work apart from one that only inserted the first ID and then stopped?
// Insert a row of information into the table "example"
mysql_query("INSERT INTO tbl_ply_hankypark (Song_ID) VALUES ('???')")or die(mysql_error());
Thought it best to just bite the bullet and come ask you guys cos your always right lol