... and another Newbie joins the list. 
I have a simple Order Form with a SubForm within it.
On the Subform, I've used a Combo Box (Lookup from another table) with a Text Description in one column and a numeric value in the second column. The intention here is to have the user choose a product in the "Description" field, and have it automatically poplulate a separate numeric field for further calculations... in an unbound text control on the subform.
Everything works, so far... the description automatically calls up the numeric value in the second text control, and I do a calculation on that value to determine a total cost (also in an unbound text control on the subform).
The problem is, that I can't figure out how to perform a Sum on the auto-populated text control.
I've been trying "=Sum([Fieldname])" and then referring to that text control from the main form, but I always get a "#error". Yet using an inputed value, like price, gives me the correct calculation.
Help is much appreciated!
- Grant.
I have a simple Order Form with a SubForm within it.
On the Subform, I've used a Combo Box (Lookup from another table) with a Text Description in one column and a numeric value in the second column. The intention here is to have the user choose a product in the "Description" field, and have it automatically poplulate a separate numeric field for further calculations... in an unbound text control on the subform.
Everything works, so far... the description automatically calls up the numeric value in the second text control, and I do a calculation on that value to determine a total cost (also in an unbound text control on the subform).
The problem is, that I can't figure out how to perform a Sum on the auto-populated text control.
I've been trying "=Sum([Fieldname])" and then referring to that text control from the main form, but I always get a "#error". Yet using an inputed value, like price, gives me the correct calculation.
Help is much appreciated!
- Grant.