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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculating sumproduct on a form

Status
Not open for further replies.

jella

Technical User
Mar 25, 2000
2
PE
I have a table of chemical results based on ProjectID, From, To (SampleID) and a form that asks for the user to input ProjectID and select a subset interval (start From & end To) of which they want to calculate the sum product {(sum(chemresult*interval))/sum(interval)}. <br>
On the OnEnter of the &quot;To&quot; control on the form, I would like the result to appear in blank label underneath. I have been able to arrive at an answer using 3 cumbersom queries. I think there must be an elegent way to do this - by writing code? or a more efficient 1 step query? Any ideas would be very greatly immensely appreciated.<br>
loosing sleep over this one...<br>
thank you<br>
jelena
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top