J
Jeff Hunt
I have several CSV files that I have to link to in the database I'm building.
They have to be linked because they update periodically throughout the day.
However, others need to link to them as well, so I'm looking for a way to
import them several times each day so users aren't locking each other out of
the files. Right now I'm planning on having an OnTimer event on my main form
that will make the linked data into a local table every half hour. Not sure
if I want to run as a delete/re-append or just a re-make the table. Either
way, the problem I have is how to tell if the file is already in use before
running. If I try to delete/append or re-make the local table while someone
else is locking the file, it will remove the local data already in the table.
This would leave my database w/o the table until it runs again in half hour.
Is there a way I can tell if the file is available, and run the update only
on condition of availability? I would rather have 30 min old data than no
data at all for that time.
They have to be linked because they update periodically throughout the day.
However, others need to link to them as well, so I'm looking for a way to
import them several times each day so users aren't locking each other out of
the files. Right now I'm planning on having an OnTimer event on my main form
that will make the linked data into a local table every half hour. Not sure
if I want to run as a delete/re-append or just a re-make the table. Either
way, the problem I have is how to tell if the file is already in use before
running. If I try to delete/append or re-make the local table while someone
else is locking the file, it will remove the local data already in the table.
This would leave my database w/o the table until it runs again in half hour.
Is there a way I can tell if the file is available, and run the update only
on condition of availability? I would rather have 30 min old data than no
data at all for that time.