Null #error

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

=[ProductCode] & " " & Trim([SkinDoorReplace] & " " & [Particular] & " " &
Left([Measurements],InStr([Measurements],"X")-2) & "mm X " &
Mid([Measurements],InStr([Measurements],"X")+2) & "mm")

If measurements is null , the above equation is #error
How to make it not #error when measurements is null?

Any solutions?

Thanks in advance

Kennykee
 
use the iif statement

bit of air code

iif(isnull(Measurements),0,Measurement)

but it would be better in the long run to make sure that the measurement
field never has null default the value to 0, would make your coding simpler.
 
Or
Nz(Measurements,0)

Alex White MCDBA MCSE said:
use the iif statement

bit of air code

iif(isnull(Measurements),0,Measurement)

but it would be better in the long run to make sure that the measurement
field never has null default the value to 0, would make your coding simpler.

--
Regards

Alex White MCDBA MCSE
http://www.intralan.co.uk

kennykee said:
=[ProductCode] & " " & Trim([SkinDoorReplace] & " " & [Particular] & " " &
Left([Measurements],InStr([Measurements],"X")-2) & "mm X " &
Mid([Measurements],InStr([Measurements],"X")+2) & "mm")

If measurements is null , the above equation is #error
How to make it not #error when measurements is null?

Any solutions?

Thanks in advance

Kennykee
 

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

Back
Top