determining date of a file

M

Mr. T

Hi,

i need to be able to determine the date of a file in a directory. More
specific, i need to know the most recent modified file in a directory.

Is this possible from within my Access Module?

Thx in advance!

Mr. T
 
D

Douglas J. Steele

VBA has a built-in FileDateTime function that'll give you that. Pass the
full path as the sole argument to the function:

dtmLastUpdate = FileDateTime("D:\Data\MSAccess\Sample.mdb")
 
M

Mr. T

thx Douglas, that's what i needed!

Douglas J. Steele said:
VBA has a built-in FileDateTime function that'll give you that. Pass the
full path as the sole argument to the function:

dtmLastUpdate = FileDateTime("D:\Data\MSAccess\Sample.mdb")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top