I have a form that is keeping track of miscellaneous sales. The items first have to look up the cost of an item, then find out of there is sales tax on that item and add to it. So I have:
=([Quantity]*ItemKey.Column(2)) which is the cost of the item
=IIf(IsNull([ItemKey]),0,DLookUp("TaxRate","tblMiscellaneousItemsforSale","ItemID = " & [ItemKey])*[txtTotal]) which looks up if it is a taxable item
=[Quantity]*[ItemKey].[Column](4) which is the total of that item
I need to sum all items though and I can only get #Error. I am putting that text box in the form footer.
Any ideas? Thank you in advance.
=([Quantity]*ItemKey.Column(2)) which is the cost of the item
=IIf(IsNull([ItemKey]),0,DLookUp("TaxRate","tblMiscellaneousItemsforSale","ItemID = " & [ItemKey])*[txtTotal]) which looks up if it is a taxable item
=[Quantity]*[ItemKey].[Column](4) which is the total of that item
I need to sum all items though and I can only get #Error. I am putting that text box in the form footer.
Any ideas? Thank you in advance.