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

Nz() function in MS ACCESS, WHAT WILL BE THE EQUVALENT IN ADP OR SQL 1

Status
Not open for further replies.

indraT

IS-IT--Management
Jan 18, 2004
24
CA
Hi there,

I have Nz() function in my access database which i converted to adp with sql back end. now my Nz() function is not working or displaying the message saying there is no function Nz() from my adp file which link to sql server. Could i please have information by which function i can replace this function so that i can have same functionality.

Thanks in advance.

Indra.
 
Indra,

Works best if you copy/paste your SQL code here...

There is no exact equivalent of NZ in SQL.

Code:
CAST(IsNull(yourfield,'Null') AS varchar(4)

replaces null fields with the literal 'Null'



HTH,
Bob [morning]
 
The isnull() function will replace a null value.
isnull(mynumber,0)
If mynumber is null then it will contain 0.
 
Its working fine with IsNull() function. Thanks you all for help.

Indra.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top