A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

sum([TakesTooLong])



 
 
Thread Tools Display Modes
  #1  
Old September 29th, 2006, 03:02 PM posted to microsoft.public.access.forms
Jesse Aufiero
external usenet poster
 
Posts: 24
Default 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  
Old September 29th, 2006, 05:09 PM posted to microsoft.public.access.forms
ruralguy via AccessMonster.com
external usenet poster
 
Posts: 1,172
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:46 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.