In Access 2000,
I'm trying to create an update query based on another selection query that is, in turn, based on a ODBC-linked SQL server table. The problem is, that I also need to sum a quantity field before updating my target table.
As I re-discovered (deja-vu), you can't base an update query on a calculated (sum) selection query... instead Access help suggests doing this in the update query itself using the DSUM function. This works, but incredibly slowly (how about 1 record per 5 seconds?)
I've tried changing to a snapshot on my source selection query instead of a dynaset but it didn't make a difference. I would have thought this would have worked, since it would appear this bottleneck is due to requering of the SQL database per every DSUM field calculation and the snapshot setting should prevent this requerying. Is there something that I'm missing? Is there another way to summarize a recordset to be used in an update query? (I'm updating a local db table, btw).
I'm trying to create an update query based on another selection query that is, in turn, based on a ODBC-linked SQL server table. The problem is, that I also need to sum a quantity field before updating my target table.
As I re-discovered (deja-vu), you can't base an update query on a calculated (sum) selection query... instead Access help suggests doing this in the update query itself using the DSUM function. This works, but incredibly slowly (how about 1 record per 5 seconds?)
I've tried changing to a snapshot on my source selection query instead of a dynaset but it didn't make a difference. I would have thought this would have worked, since it would appear this bottleneck is due to requering of the SQL database per every DSUM field calculation and the snapshot setting should prevent this requerying. Is there something that I'm missing? Is there another way to summarize a recordset to be used in an update query? (I'm updating a local db table, btw).