O
OnTheJobLearning
So, I cannot do a Sum function when one of the control sources is an
expression (to pull a number from a table?)
Thanks.
You no longer have a Unit Cost field in the form if you have set the Control
Source of a Unit Cost control to this expression:
=[Wafer TypeA].Column(1)
So this expression is not valid any more because Sum cannot see a control
named Unit Cost, it can only see a field named Unit Cost:
=Sum([Quantity]*[Unit Cost])
--
Ken Snell
<MS ACCESS MVP>
expression (to pull a number from a table?)
Thanks.
You no longer have a Unit Cost field in the form if you have set the Control
Source of a Unit Cost control to this expression:
=[Wafer TypeA].Column(1)
So this expression is not valid any more because Sum cannot see a control
named Unit Cost, it can only see a field named Unit Cost:
=Sum([Quantity]*[Unit Cost])
--
Ken Snell
<MS ACCESS MVP>
OnTheJobLearning said:The Subtotal field in the main form is:
=[Approvals Subform]![Total Approved]
The Total Approved field in the subform is:
=Sum([Quantity]*[Unit Cost])
The Unit Cost field is: (Based off Wafer TypeA combo box choice)
=[Wafer TypeA].Column(1)
Ken Snell (MVP) said:Assuming that you're using the Sum function to calculate the subtotal,
you
must use only field names in the Sum expression -- you cannot use the
value
from a control.
Post the expression that you're using to calculate the subtotal.