Can Access do this?

M

Mr HAL

I need to poll a folder on the network every so often, say every 5 mins to
check for the creation of a text file.
Once this file exists, I need to update a table based on data in it.
I then need to move the file to a store folder.

Is access capable of doing this, or should I look at .NET, and maybe create
an app which runs as an icon in the system tray?

Any help appreciated.
 
A

Alex Dybenko

Yes, access can also do this:
to check if file created - use Dir()
to copy file - FileCopy
to delete file - Kill
 
D

Dirk Goldgar

Alex Dybenko said:
Yes, access can also do this:
to check if file created - use Dir()
to copy file - FileCopy
to delete file - Kill

And to take some action every 5 minutes, use the Timer event of a form.
Note that the database and form must be open at all times in order for
this to work.
 
J

John Nurick

And to take some action every 5 minutes, use the Timer event of a form.
Note that the database and form must be open at all times in order for
this to work.

For that reason I'd be inclined to do this independently of Access, with
a script that runs as a scheduled task in the operating system. I'd use
DAO to execute an append query against the text file using syntax like
this
FROM [Text;HDR=No;Database=D:\Folder\Subfolder\;].MyFile#txt
with field definitions in a schema.ini file if necessary.
 
D

Dirk Goldgar

John Nurick said:
And to take some action every 5 minutes, use the Timer event of a
form. Note that the database and form must be open at all times in
order for this to work.

For that reason I'd be inclined to do this independently of Access,
with a script that runs as a scheduled task in the operating system.
I'd use DAO to execute an append query against the text file using
syntax like this
FROM [Text;HDR=No;Database=D:\Folder\Subfolder\;].MyFile#txt
with field definitions in a schema.ini file if necessary.

I'm inclined to agree with you, but we don't know enough about the
details of just how the table is supposed to be updated from the text
file.
 

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