Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Orders subform with calculations produces #error before populated

Status
Not open for further replies.

emtenzer

MIS
Nov 14, 2001
50
US
I have a form with a subform for "sales". The subform uses some calculations and some dlookups to produce the cost of the sale on the form. They work fine, but before the sale is entered, they show #Error in the text box. Is there any way to hide these? Thank you.
 
It is hard to say without seeing your calculations. But likely you calculations in the new record use a value that is set to null. Look at your calculations and consider wrapping them or passing values wrapped in a NZ function which will change a Null value to zero or something else.
 
Or post your calculations for a possibly better answer.
 
This is one:

=DLookUp("TaxRate","tblMiscellaneousItemsforSale","ItemID = " & [ItemKey])*[txtTotal
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top