If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
sum([TakesTooLong])
Adding a textbox to the footer of my continuous form in order to provide a
total dollar figure for one of the columns has become problematic. Even when the form is filtered to show only a few records, access takes a very long time to calculate the total. A sql trace (the back-end db is on sql server 2000) reveals that the database is being hit once for every record in order to come up with the total. As a result, I'd like some advice on how to do this another way... I'm thinking that the best way to force access to handle the summing on the client machine, is to make use of the recordsetclone method, and then simply have my form code iterate through the rows in the clone to handle the summing on the client machine. The trouble is, i don't know what event to hook into to do this. I'll want to trigger the code each time the user filters the form in a different way. I tried using the ApplyFilter event, but this event fires BEFORE access retreives the new filtered recordset. Any ideas? I'm open to other well thought out suggestions. Thanks! |
#2
|
|||
|
|||
sum([TakesTooLong])
Try the current event!
Jesse Aufiero wrote: Adding a textbox to the footer of my continuous form in order to provide a total dollar figure for one of the columns has become problematic. Even when the form is filtered to show only a few records, access takes a very long time to calculate the total. A sql trace (the back-end db is on sql server 2000) reveals that the database is being hit once for every record in order to come up with the total. As a result, I'd like some advice on how to do this another way... I'm thinking that the best way to force access to handle the summing on the client machine, is to make use of the recordsetclone method, and then simply have my form code iterate through the rows in the clone to handle the summing on the client machine. The trouble is, i don't know what event to hook into to do this. I'll want to trigger the code each time the user filters the form in a different way. I tried using the ApplyFilter event, but this event fires BEFORE access retreives the new filtered recordset. Any ideas? I'm open to other well thought out suggestions. Thanks! -- HTH - RuralGuy (RG for short) acXP WinXP Pro Please post back to this forum so all may benefit. Message posted via AccessMonster.com http://www.accessmonster.com/Uwe/For...forms/200609/1 |
Thread Tools | |
Display Modes | |
|
|