How to get date and time a file has been created

dorisr

Programmer Analyst
Local time
Today, 08:27
Joined
May 5, 2008
Messages
15
Hi everyone,
I'm looking for a way to go get the date & time that a file has been created or updated...

I have made a macro to go get a comma delimited file and imported the data in a pre-define table. But It will be nice before to go get the date & time that file has been created before the imported macro procedure.

Is there a way to program that code in vb access ?

Please if you know how to do this ,,, help me.

Thanks,
Doris
 
Thanks for your reply.

I have found this simple code that do it also :

Dim pathname As String
pathname = "C:\testfile.txt"

mystamp = FileDateTime(pathname)
MsgBox (mystamp)

This return the date and time of creation or last update.

Thanks again for your time.
Doris
 
amazing which little known functions are there when you start digging around isnt it.
 

Users who are viewing this thread

Back
Top Bottom