<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Gunnar Peipman's ASP.NET blog : VBA</title><link>http://weblogs.asp.net/gunnarpeipman/archive/tags/VBA/default.aspx</link><description>Tags: VBA</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Nz() function</title><link>http://weblogs.asp.net/gunnarpeipman/archive/2009/04/13/nz-function.aspx</link><pubDate>Mon, 13 Apr 2009 18:34:19 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7045298</guid><dc:creator>DigiMortal</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/gunnarpeipman/rsscomments.aspx?PostID=7045298</wfw:commentRss><comments>http://weblogs.asp.net/gunnarpeipman/archive/2009/04/13/nz-function.aspx#comments</comments><description>&lt;p&gt;Nz() function is kinky creature is Access VBA. It is called “null to zero” but it hardly has something to do with zeros. For me this function is good shortcut for gangsta rapper street name – NullZ. Well, for me was most confusing the fact that one need to provide this function with null’s replacement value if empty string is not enough for numbers.&lt;/p&gt;  &lt;p&gt;After this assigment:&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;hr size="1" /&gt;&lt;span style="widows: 2; text-transform: none; text-indent: 0px; border-collapse: separate; white-space: nowrap; orphans: 2; letter-spacing: normal; color: rgb(0,0,187); word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0" class="Apple-style-span"&gt;i = Nz(Rs(&amp;quot;Size&amp;quot;))&lt;/span&gt;   &lt;hr size="1" /&gt;   &lt;p&gt;&lt;/p&gt;  &lt;p&gt;the value of i is empty string. If we want Nz() to return zero, we need to write it this way:&lt;/p&gt;  &lt;hr size="1" /&gt; &lt;span style="widows: 2; text-transform: none; text-indent: 0px; border-collapse: separate; white-space: nowrap; orphans: 2; letter-spacing: normal; color: rgb(0,0,187); word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0" class="Apple-style-span"&gt;i = Nz(Rs(&amp;quot;Size&amp;quot;), 0)   &lt;hr size="1" /&gt; &lt;/span&gt;  &lt;p&gt;I have to say that Nz() was very memory freshing experience after long time without any VBA code. :)&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7045298" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/gunnarpeipman/archive/tags/General+Software+Development/default.aspx">General Software Development</category><category domain="http://weblogs.asp.net/gunnarpeipman/archive/tags/Access/default.aspx">Access</category><category domain="http://weblogs.asp.net/gunnarpeipman/archive/tags/VBA/default.aspx">VBA</category></item></channel></rss>