Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get Last modified date on folder through Access VBA 1

Status
Not open for further replies.

Tadynn

Technical User
Oct 8, 2001
72
0
0
AU
Hi all,

Does anyone know how to create a form within access 2k that will show me the last modified date on a folder?

Let's say that my folder is called: c:\Testing

Thanks in advance,

Tadynn
 
Have you tried something like this ?
FileDateTime("c:\Testing")

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Hi PHV

Excuse my arrogance, I've written it in like this and obviously it's wrong.

Private Sub Form_Load()
Me.Var.Value = FileDateTime("c:\Testing\")

End Sub

var is the name of my text box that I would like to display the timestamp in.

Can you please tell me the correct way to use the filedatetime function?

Rgrds, Tadynn





 
Just like my previous post, get rid of the trailing backslash in the folder pathname.

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top