Sum Function Error

T

tmac

I having problems with Access and the sum on forms.



Tables: Products, KITS, Kits Subdata



Products are a list of products of course with part numbers and pricing.

Kits is a list of kits, KitID, Descriptions, ect.

Kits Subdata = KitID, Part#, ProductName



In my Kits form, I have subform named "Kits Subdata subform"



In the kits form, I have [Total Cost] =[Kits Subdata
subform].Form!SumofParts



In the form "Kits Subdata subform", it refences the kits subdata table
for part#(combo box that has lookup into products table), quantity, then
I do a dlookup in the control for price



In the subform header, I have SumofParts = Sum([price]*[quantity])



It seems when I lookup the price field, I get error for sum?



Can a calculted or lookup field be in the sum expression? If not, what
is the correct way.



thanks



tim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top