How can we Link to the Most Current .txt file in a folder

B

Brad

We have an existing system that creates a small transaction file (flat file)
daily with a date stamp in the file name. All of these files are stored in
one folder, one file per day.

We would like to read the contents of the newest version of this file via
Access 2007. We know how to link to a specific flat file with Access 2007.
What we cannot figure out is how to programmatically determine (in VBA) which
file is the “most currentâ€. Is this possible?

Thanks

Brad_55
 
J

Jerry Whittle

In the same situation, I found it better to not attempt to hit a moving
target. In other words, have the other system create the file with the same
name every day. If you need to keep a copy of it, maybe the other system
could create two files daily: one 'plain' and the other with the date
timestamp.

A dozen donuts for the developers on the other system should do the trick!
 
B

Brad

Jerry,

Thanks for the great idea!

We had not thought of this approach, but it seems like a really good one.

I am now off to the local donut shop :)

Brad
 

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