G
Guest
Hi,
I have main from [frmOrders] and Subform [frmOrderDetailsSubform]
On on the subform I have fields [Qty] and [Product].
On the main form, I have an unbound txtfield that I would like to show the
sum of [Qty] where the name of the value of [Product] begins with "F"
Below is the 'RecordSource' line that I have on the unbound txtbox on the
mainform, but Im gettin #Error in when I view in Form View... What am I doin
wrong or is that how it is done? Thanks for any help.
=Sum(IIf(Forms!frmOrders!frmOrderDetailsSubform.Form!Product Like
"F%",Forms!frmOrders!frmOrderDetailsSubform.Form!Qty,0))
I have main from [frmOrders] and Subform [frmOrderDetailsSubform]
On on the subform I have fields [Qty] and [Product].
On the main form, I have an unbound txtfield that I would like to show the
sum of [Qty] where the name of the value of [Product] begins with "F"
Below is the 'RecordSource' line that I have on the unbound txtbox on the
mainform, but Im gettin #Error in when I view in Form View... What am I doin
wrong or is that how it is done? Thanks for any help.
=Sum(IIf(Forms!frmOrders!frmOrderDetailsSubform.Form!Product Like
"F%",Forms!frmOrders!frmOrderDetailsSubform.Form!Qty,0))