Okay my database is going to be very large, monthly totaling about 600,000 records. (I plan to keep seperate databases every month just for size and speed purposes).
Currently the databases imports a text file daily into a table. Using VBA, after the import is done, approx 20 update queries are run to clean and update the data in ONE of the fields. The change is based on several possible "rules" for the update.
For example:
Update column A to "xxx" if column b like "AA*" and column C = forms!form!asofdate
or
Update column A to "xxx" if column b like "BB*" and column D >="D*" and column C = forms!form!asofdate
As I said there are about 20 rules for the value of column A all handle by individual update queries. That need to be run in a specific order because some rules supercede others.
I have it working but it has slowed down the entire operation of the database. even with only 30,000 records. I don't mind the initial time it takes for the import or the initial run of updates. But once that is done I can't see the reason for the slow down of everything else.
Any suggestions to clean this update or a suggestion for a better way to run these update rules ?
Thanks
Currently the databases imports a text file daily into a table. Using VBA, after the import is done, approx 20 update queries are run to clean and update the data in ONE of the fields. The change is based on several possible "rules" for the update.
For example:
Update column A to "xxx" if column b like "AA*" and column C = forms!form!asofdate
or
Update column A to "xxx" if column b like "BB*" and column D >="D*" and column C = forms!form!asofdate
As I said there are about 20 rules for the value of column A all handle by individual update queries. That need to be run in a specific order because some rules supercede others.
I have it working but it has slowed down the entire operation of the database. even with only 30,000 records. I don't mind the initial time it takes for the import or the initial run of updates. But once that is done I can't see the reason for the slow down of everything else.
Any suggestions to clean this update or a suggestion for a better way to run these update rules ?
Thanks