G
Guest
I have a database that is updated from a non-Access database that does not
allow for a direct link. Twice a day, this other database sends me a set of
5 CSV files. I have a set of code instructions that empties the tables this
data goes into and then imports the data from the files into the existing
tables, then does a few other procedures to link the data up to other tables
that do not get replaced. As you can guess, this is an appallingly
destructive process, and I think it may be part of why the database needs to
be repaired on a semi-regular basis. Is there some way that I can import
only new records from the csv files and update the ones that are already in
there based on the data in the csv files? I had thought of setting up dummy
tables to import into, but it seems to me that this just adds another layer
to my code and would slow it down further (it's already quite slow enough,
thank you) without solving the original problem, as I would still be emptying
and refilling tables.
Is there any other way around this? Can I open a csv file in a recordset in
vba code?
allow for a direct link. Twice a day, this other database sends me a set of
5 CSV files. I have a set of code instructions that empties the tables this
data goes into and then imports the data from the files into the existing
tables, then does a few other procedures to link the data up to other tables
that do not get replaced. As you can guess, this is an appallingly
destructive process, and I think it may be part of why the database needs to
be repaired on a semi-regular basis. Is there some way that I can import
only new records from the csv files and update the ones that are already in
there based on the data in the csv files? I had thought of setting up dummy
tables to import into, but it seems to me that this just adds another layer
to my code and would slow it down further (it's already quite slow enough,
thank you) without solving the original problem, as I would still be emptying
and refilling tables.
Is there any other way around this? Can I open a csv file in a recordset in
vba code?