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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Null function

Status
Not open for further replies.

PatelRam

Programmer
Aug 20, 2003
87
US
Hi,

what is Null function in Ms-access ?

Oracle : select nvl(comm,0) from employee;
Ms-Access : ??

Thanks,

Ram
 
I assume you are referring to NZ().

NZ(myfield,0) will return 0 if myfield is null.

General form is Nz(myfield,value) but default vlues are 0 for numbers and "" for strings.
 
I tried but it is giving undefined function error

Basically I am using following query in crystal Designer.
I am using access database in backend.

My sql query is

select NZ(division,"Unassigned") from table_name

but it is giving me error.

Am I doing some thing wrong here ???
 
Nz is for use in access itself. It is possible that the DB engine for crystal will work with ISNULL([FieldValue], [ValueIfNull]) instead
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top