Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculate a Subform on Command

Status
Not open for further replies.

GlenMacK

IS-IT--Management
Sep 8, 2003
16
CA
I have form with a couple of subforms. One of them is taking a long time to calculate, which means it is taking a long time to move between records.

Is there any way that I could have the subform showing on the form, but not have it calculate until a command button is pushed. This way a user can move through records quicker and only total the records they want instead of each one.

Any help on this would be greatly appreciated.

 
Sure! The same commands you are using to calculate the values can be put under a cmd button. Just be sure any alias' that you are using - namely 'me' is changed to it's formal name 'forms![...]....'


Rollie
 
So what you are saying is instead of having the calculations performed in the query for the subform, have a command button perform the calculations.

I will try that , thanks..I think one problem I may with that is...my query for the subform is made of two other querys..probably bad programming on my part.

I am sum totalling hours and Materials both of which come from separate querys...

Not sure how I will get all to calc...

Thanks for pointing in the right direction..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top