FileDateTime function uses the filename, however, filename is dynamic as have dates or extra character within. Just check the second link and i think this is function VBA for excel.You could use FileDateTime() function
MS Access: FileDateTime Function
in conjunction with the DIR() function to look through all the files, and store the name of the highest date and time.?
How many files are we talking about.?
I would normally have had the file go into an import folder, then move/delete it after being imported?
You could try find latest file vba - Google Search
@dhen21dx I think you need to clarify, and some examples of file names and you explaining which of those is the "latest" would help.filename is dynamic as have dates or extra character within
The latest file refers to system modified date of the file, filename also includes date like filename20210708, filename20210709…I have to wonder if everyone is on the same page. What constitutes the "latest" file - it's create date? last modified date? A date that's part of the file name? I suspect the latter:
@dhen21dx I think you need to clarify, and some examples of file names and you explaining which of those is the "latest" would help.