Do just what you said.
You will want to use WScript.FileSystemObject.
I would do this:
Dim objFSO
Dim objFile
Dim rs As ADODB.Recordset
Dim sSQL As String
Dim sFile As String
Dim dtLastMod As Date
Set objFSO = CreateObject("Scripting.FileSystemObject")
sSQL = "SELECT * FROM MyLocalTableWithSpreadSheetNamesAndAttributes"
Set rs = New ADODB.Recordset
rs.Open sSQL, CurrentProject.Connection, adOpenDynamic, adLockOptimistic
rs.MoveFirst
Do Until rs.EOF
sFile = rs("FileNameColumn") 'ex "C:\MyDouments\MySpreadSheet.xls"
dtLastMod = rs("LastModDateColumn")
Set objFile = objFSO.GetFile(sFile)
If objFile.DateLastModified > dtLastMod Then
'do data transfer method here
rs("LastModDateColumn") = objFile.DateLastModified
rs.Update
End If
rs.MoveNext
Loop
rs.Close
This will loop through all the filenames in your file name and attribute table, use the filename to go get the file attributes (you need to enter a file name with the path OR add the path to the string value like this: sFile = "C:\MyDocuments\" & rs("FileNameColumn") ) and then take the date last mod field and compare it to the date last mod field of the file. If the file has been modified more recently than the date entered in the table, then do your data import routine. That routine may not be able to update the table since it is already opened, so I added it to this routine.
Did that help?
mmcdonal
Look it up at:
http://wrox.books24x7.com