I am using "order entry" that was in the sample database files. I have had
no
trouble with any of the other changes I have made, but this one I have
been
working on for days with no success.
I added a field to the table "orders" called "NutritionTest" caption
"NutritionTest", data type currency. I added it to the form "orders" by
dragging it from the "fields" window with the control source
"NutritionTest",
name "NutritionTest", default value "0".
I needed to add this total to 3 places. The two that worked are: in the
"orders" form "OrderTotal" and in the "Invoice" report "OrderTotal". I
simply added it with a +[NutritionTest] to the existing equation (with
line
total or subtotal, sales tax and freight charge).
Where it isn't working is: "Orders by Customer" form. Subform, orders by
customer subform. The text box is "total sale"
The equation there is:
=[LineTotal]+(CLng([LineTotal]*[SalesTaxRate]*100)/100)+[FreightCharge]+[NutritionTest],
- where I added the + [NutritionTest],but it gets the #name? error msg and
the #error for amount due (which gets its total from total sale). The
[FreightCharge] is in the same table "orders" and form "orders" as is
[NutritionTest] that I added, and the equation works without my addition.
This is only one of the two items I need to add, but until I get the first
one I can't add the second.
Thanks for any suggestions
I have tried using the expression editor and adding it by finding in below
in the forms folder and clicking on it in the <forms> column same problem.