Apr 20, 2005 #1 NOVAmichelle MIS Jul 27, 2004 52 US I know that sounds silly, but what does it stand for?
Apr 20, 2005 #2 PHV MIS Nov 8, 2002 53,708 FR When in VBE (Alt+F11) open the immediate pane (Ctrl+G), type nz and then press the F1 key. Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244 Upvote 0 Downvote
When in VBE (Alt+F11) open the immediate pane (Ctrl+G), type nz and then press the F1 key. Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
Apr 20, 2005 #3 a98dsu98sad8sua Technical User Apr 5, 2005 70 CA I presume it stands for Null to Zero, as that is what it does. Upvote 0 Downvote
Apr 20, 2005 #4 WildHare MIS Mar 1, 2002 1,801 US NZ is the name of the function in VB/A that will convert a NULL value to ZERO, hence the "NZ". Useful when performing many arithmetic operations, since the inclusion of NULL in any operation will return NULL as the answer: 2+3+4+X if x is Null = NULL 2+3+4+NZ(X) = 9, because the NULL "X" was changed to 0, and then the arithmetic worked. I use this a lot if I'm adding together fields across a row, and it's possible that one or more fields might be NULL. Don't be sexist - Broads hate that. Another free Access forum: http://www.forumco.com/jmhareMore Access help stuff at http://www.jmhare.com/wildhare.htm Upvote 0 Downvote
NZ is the name of the function in VB/A that will convert a NULL value to ZERO, hence the "NZ". Useful when performing many arithmetic operations, since the inclusion of NULL in any operation will return NULL as the answer: 2+3+4+X if x is Null = NULL 2+3+4+NZ(X) = 9, because the NULL "X" was changed to 0, and then the arithmetic worked. I use this a lot if I'm adding together fields across a row, and it's possible that one or more fields might be NULL. Don't be sexist - Broads hate that. Another free Access forum: http://www.forumco.com/jmhareMore Access help stuff at http://www.jmhare.com/wildhare.htm