FileDateTime gives me the date last modified for a file. Is there an equivalent method for obtaining the date last modified for a folder? I.e., were any of the files in a given folder added, deleted or otherwise changed? Somebody have a sub laying around for such a question?
I did see a post using FSO on an Excel site, but thought perhaps I'd missed something native to Access.
This works, unless someone has something better that's native to Access?
Code:Option Compare Database Option Explicit Private Sub testfldr() MsgBox GetDateLastModif("c:\TMS") End Sub Function GetDateLastModif(strFold As String) As Date Dim fso As Object, gf As Object Set fso = CreateObject("Scripting.FileSystemObject") Set gf = fso.GetFolder(strFold) GetDateLastModif = gf.DateLastModified End Function