Vina,
Originally you said you wanted to look at "a certain folder". Now it
seems you want to recurse through all the folders on the disk.
The simplest way to do this IMO is
1) open a command prompt ("DOS prompt") and run a command like this to
create a textfile containing a list of all the .mdb files on the disk:
DIR *.MDB /S /B > "C:\Folder\Database List.Txt"
2) import this file into an Access table (I'll call it tblFiles). Allow
Access to create a primary key.
3) add a date/time field to the table. Let's call the field with the
filename and path FileSpec, and the date/time field DateLastModified.
4) Populate the DateLastModified field by using the FileDateTime()
function in an update query. The SQL view of the query will look like
this:
UPDATE tblFiles
SET DateLastModified = FileDateTime([FileSpec]);
John,
Can you give me more information on how to use this?
-----Original Message-----
Hi Vina,
I'd use the FileSystemObject object for this. This comes with Folder and
File objects which have useful properties like .DateLastModified and
..DateLastAccessed.
is it possible to create something that it will look at a
certain folder and look for MDB's in that folder and then
to look on the details on that folder to when it was
modified and write all these in a table. It is possible
to be done in access.
Can someone give me an idea how to go about this.
Thanks
Vina
--
John Nurick [Microsoft Access MVP]
Please respond in the newgroup and not by email.
.