John/Dirk,
I think maybe I mis-stated what I'm looking for.
The code (
http://www.mvps.org/access/api/api0001.htm) works great. I am
able to 'filter' some of the contents already. For example, in the folder
the user picks, I only want files that begin with "FAPSNDL". I already
filter for that, but I want a twist.
What I'm looking to do is this:
The files have the date and time in the name:
FAPSNDL200704010800.TXT
(FAPSNDLyyyymmddhhmm.TXT)
I'd like to find the last file I imported (on each record I import, I have a
field that indicates the file it came from) and only list the files in the
user's import folder that are newer (greater) than the max file I imported.
Using the code I already have (
http://www.mvps.org/access/api/api0001.htm),
I'd like to tweak it to somehow filter for not just the files that start with
FAPSNDL, but rather files that have a file name greater (since the file has a
date/time, I can consider files as greater than/less than) than the most
recent file I imported.
Is there some kind of way to filter for files that start with FAPSNDL but
that are "greater than" the maximum file name I have as the result of a query
or on a form?