Get last updated value of an excel file in a field in access (1 Viewer)

virencm

Registered User.
Local time
Tomorrow, 00:13
Joined
Nov 13, 2009
Messages
61
Hi,
Can someone help me with some vba code which is able to get the last updated or last modified value of an excel file stored in a folder in a shared drive and update a field on a form in ms access.

Thanks

Viren
 

nathansav

Registered User.
Local time
Today, 07:13
Joined
Jul 28, 2010
Messages
114
Function GetLastModDate(strFilePath as string) as date
Dim f As Scripting.FileSystemObject
Dim fl As Scripting.file
Dim dtM As Date
Set f = New Scripting.FileSystemObject
Set fl = f.GetFile(strPath)
dtDM = fl.DateLastModified
GetLastModDate=dtDM
end function
 

virencm

Registered User.
Local time
Tomorrow, 00:13
Joined
Nov 13, 2009
Messages
61
Perfect.Thanks!!!!
 

Users who are viewing this thread

Top Bottom