AlfFromMelmac
Technical User
I have an Access database that pulls information from a main SQL server via append query and builds a table I use as a source for tracking purposes. The master key is the visit number since that is unique, but the problem is that the append query only adds new visits and the main database may change schedule date or time, which is not updated in my Access table.
I have made an update query based on the append query (copied it then tweaked it so it went to the same database, had the same relations, etc), set it to pull the same information and replace schedule date and time (on all records, since that should update the date and time on all records and catch any changes at all) in the table built from the append query. The problem is that I don't know if it works because as soon as I run it, it thrashes the main SQL database so hard that the site can no longer use the application and Access pulls the info very, very slowly. I've had to end task after 15 minutes each time, before anything was actually done to my table. The append query only takes a few seconds and doesn't affect the database performance at all. I know I have to be doing something wrong but not sure what...
Thanks for any help!
I have made an update query based on the append query (copied it then tweaked it so it went to the same database, had the same relations, etc), set it to pull the same information and replace schedule date and time (on all records, since that should update the date and time on all records and catch any changes at all) in the table built from the append query. The problem is that I don't know if it works because as soon as I run it, it thrashes the main SQL database so hard that the site can no longer use the application and Access pulls the info very, very slowly. I've had to end task after 15 minutes each time, before anything was actually done to my table. The append query only takes a few seconds and doesn't affect the database performance at all. I know I have to be doing something wrong but not sure what...
Thanks for any help!