473,395 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Null & Nz function

97
I am still not clear about the differences between Null & Nz.
Please excuse my idiot question, but can anybody give an explanation?
Thanks!
Apr 15 '08 #1
3 2527
Delerna
1,134 Expert 1GB
null is a value that means that the field that has the value null has never had a value assigned to it.

nz is a function that enables you to return a default value for a field that has a null value


so if fld=null
nz(fld,"Hello")=Hello

if fld="Welcome"
nz(fld,"Hello)=Welcome

But Im sure you have seen desriptions like that before.
Maybe it would be better if you described your understanding and what you were having trouble with?
Apr 15 '08 #2
missinglinq
3,532 Expert 2GB
Although we speak of "null value," in point of fact, Null actually means without any value.

Linq ;0)>
Apr 16 '08 #3
loisk
97
Although we speak of "null value," in point of fact, Null actually means without any value.

Linq ;0)>
Hi Delerna and Missinglinq,

I have a variable, data typed as variant in my sub. If this field is either untouched or blank (after deleted), if statement will be running when the event is recognized. The behavior was different between 'Isnull(myField)' Nz(myField) and I didn't understand why. Thanks!
Apr 18 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: DrTebi | last post by:
Hello, I have the following problem: I used to "encode" my email address within links, in order to avoid (most) email spiders. So I had a link like this: <a...
16
by: cwizard | last post by:
I'm calling on a function from within this form, and there are values set but every time it gets called I get slammed with a run time error... document.frmKitAmount.txtTotalKitValue is null or not...
6
by: scott | last post by:
i've come across a real head-hurter. I'm looping through a recordset and response.writing it's rows out with no problem except 1 field. The field type is varchar and contains words like meeting,...
7
by: BlueDragon | last post by:
I don't know enough math to demonstrate that any numerical operation with a null should yield a null; although I would guess that it's true. I just don't buy it, however, when dealing with strings...
2
by: Eric Osman | last post by:
Hi, I'm looking for a javascript function that will convert input such as this: <CLUB Code=" into this: &lt;CLUB Code=&quot;
3
by: gopal | last post by:
Hi i have the following code int length = _tcslen(pszSourceString); m_pstrStartingPos = new TCHAR; memset(m_pstrStartingPos, 0, (length * sizeof(TCHAR))); when i enter this code in a...
14
by: Arne | last post by:
A lot of Firefox users I know, says they have problems with validation where the ampersand sign has to be written as &amp; to be valid. I don't have Firefox my self and don't wont to install it only...
3
by: Ganesh Palaniappan | last post by:
We're getting following exception for the below piece of code. We're wondering how it is possible since we're having a null check for objGraphics and strokePen... Exception:...
3
by: Bob Sanderson | last post by:
I have a PHP web page which uses a HTML form. I would like to enter dates into the date fields using a JavaScript calendar, similar to the way phpMyAdmin does. Can anyone recommend a JavaScript...
2
by: Coll | last post by:
I have a query that has null values for some of the fields. I'd like those fields to display a zero instead of a blank so I can do totals on them (sum/totalling the field is not working with null...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.