Calculation problems

G

Guest

Hi All,

i am using an order form system mostly taken from the northwind orders
forms. The main difference is that i'm using it so my coworkers can create a
report and keep record of orders made with our suppliers. The details part of
the form is made up of the following fields; [Part], [UnitPrice], [Quantity]
and [LinePrice]. As in Northwind [Lineprice] is a calculated value in the
underlying query.

Often the user does not know the unit price of the part. This causes
LinePrice to give an error, and obviously the following calulation [Total] to
give an error. The form will then not create a report and gives a runtime
error. The calculation in [LinePrice] is:
CCur(OrdersItems.UnitPrice*[Quantity]).

Is there a way that this calculation could display n/a or a blank instead of
an error. And also is there a way to get my report to ingore these errors and
display an n/a or blank.

Any help much appreciated.

TIA

Rico
 
R

roger_delahaye

In the formula, change UnitPrice to NZ(UnitPrice,0). This will convert
any null values to zeroes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Sorry to repost but.. 3
DLookUp Help 5
re Iff function 5
Blank Fields in Report 2
null error 2
Calculation 5
percentage calculation 2
How can I adapt the Excel calculation for DPMO into Access? 6

Top