If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
null error
I have created a db for a service centrei based on northwind my invoices
sometimes only have a labour fee and no parts (products) are used this expression in the query creates a null error in my invoice report , ExtendedPrice: CCur([Products].[UnitPrice] *[Quantity]*(1-[Discount])/100)*100 Any idea how I could prevent this |
#2
|
|||
|
|||
null error
CCur() doesn't cope with null.
ExtendedPrice: CCur(Nz([Products].[UnitPrice] * [Quantity] * (1 - [Discount]) /100, 0)) * 100 -- Allen Browne - Microsoft MVP. Perth, Western Australia Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org. "cjgav" wrote in message ... I have created a db for a service centrei based on northwind my invoices sometimes only have a labour fee and no parts (products) are used this expression in the query creates a null error in my invoice report , ExtendedPrice: CCur([Products].[UnitPrice] *[Quantity]*(1-[Discount])/100)*100 Any idea how I could prevent this |
#3
|
|||
|
|||
null error
Thanks thats solved that works a treat
"Allen Browne" wrote: CCur() doesn't cope with null. ExtendedPrice: CCur(Nz([Products].[UnitPrice] * [Quantity] * (1 - [Discount]) /100, 0)) * 100 -- Allen Browne - Microsoft MVP. Perth, Western Australia Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org. "cjgav" wrote in message ... I have created a db for a service centrei based on northwind my invoices sometimes only have a labour fee and no parts (products) are used this expression in the query creates a null error in my invoice report , ExtendedPrice: CCur([Products].[UnitPrice] *[Quantity]*(1-[Discount])/100)*100 Any idea how I could prevent this |
Thread Tools | |
Display Modes | |
|
|