DSum Errors On Some Machines     I have a form which uses many DSum calls.  This form works fine on my machine (XP Home, Access 2003), and on my test machine (Win. 2000, Office 2000) but gives only #Error on another machine (XP Pro, Access 2000).  The .mdb file was copied directly to the offending machine, so all data, table structure and code are the same.<br/><br/>    Any ideas on where I should look to find out why?<hr class="sig">The early worm gets the bird© 2009 Microsoft Corporation. All rights reserved.Wed, 05 Aug 2009 03:24:33 Z8f5b9d7f-67b6-444c-82ba-69daded454fdhttp://social.msdn.microsoft.com/Forums/en-US/isvvba/thread/8f5b9d7f-67b6-444c-82ba-69daded454fd#8f5b9d7f-67b6-444c-82ba-69daded454fdhttp://social.msdn.microsoft.com/Forums/en-US/isvvba/thread/8f5b9d7f-67b6-444c-82ba-69daded454fd#8f5b9d7f-67b6-444c-82ba-69daded454fdFogiehttp://social.msdn.microsoft.com/Profile/en-US/?user=FogieDSum Errors On Some Machines     I have a form which uses many DSum calls.  This form works fine on my machine (XP Home, Access 2003), and on my test machine (Win. 2000, Office 2000) but gives only #Error on another machine (XP Pro, Access 2000).  The .mdb file was copied directly to the offending machine, so all data, table structure and code are the same.<br/><br/>    Any ideas on where I should look to find out why?<hr class="sig">The early worm gets the birdTue, 07 Jul 2009 23:49:14 Z2009-07-07T23:49:14Zhttp://social.msdn.microsoft.com/Forums/en-US/isvvba/thread/8f5b9d7f-67b6-444c-82ba-69daded454fd#f1f94587-6b22-43d5-b75a-6790a8eba0cehttp://social.msdn.microsoft.com/Forums/en-US/isvvba/thread/8f5b9d7f-67b6-444c-82ba-69daded454fd#f1f94587-6b22-43d5-b75a-6790a8eba0ceBrijrajRathodhttp://social.msdn.microsoft.com/Profile/en-US/?user=BrijrajRathodDSum Errors On Some MachinesHi,<br/> <br/> Please provide some more information about your code using <strong>DSum</strong> and #Error. Thanks<br/><hr class="sig">Rgrds, Brij http://accessvbadeveloper.wordpress.comWed, 08 Jul 2009 11:16:21 Z2009-07-08T11:16:21Zhttp://social.msdn.microsoft.com/Forums/en-US/isvvba/thread/8f5b9d7f-67b6-444c-82ba-69daded454fd#4e9d2387-3bdf-4be3-b304-c4e525e591b5http://social.msdn.microsoft.com/Forums/en-US/isvvba/thread/8f5b9d7f-67b6-444c-82ba-69daded454fd#4e9d2387-3bdf-4be3-b304-c4e525e591b5Fogiehttp://social.msdn.microsoft.com/Profile/en-US/?user=FogieDSum Errors On Some MachinesOk - thanks for answering.<br/><br/>The form is 7 X 12 textboxes.  The code from one of the boxes is:<br/><br/>=IIf(DSum(&quot;[Admin Cost]&quot;,&quot;[Temporary Expenditures Table]&quot;,&quot;Month([E Date])=10&quot;)&gt;0,DSum(&quot;[Admin Cost]&quot;,&quot;[Temporary Expenditures Table]&quot;,&quot;Month([E Date])=10&quot;),0)<br/><br/>When the form is run on the customer's machine all that appears in any of the boxes is &quot;#Error&quot;.  The customer's machine is running Access 2000 with Windows XP Pro and the .mdb file is on a server with the offending machine linked to it.  Other forms worked, so I don't think it is a connection issue.<br/><br/>The table does have nulls in it, but the code ignores the nulls on the two test machines.<br/><hr class="sig">The early worm gets the birdWed, 08 Jul 2009 14:30:00 Z2009-07-08T14:30:00Zhttp://social.msdn.microsoft.com/Forums/en-US/isvvba/thread/8f5b9d7f-67b6-444c-82ba-69daded454fd#2588e3fd-eaf4-418a-9d7d-72f530949233http://social.msdn.microsoft.com/Forums/en-US/isvvba/thread/8f5b9d7f-67b6-444c-82ba-69daded454fd#2588e3fd-eaf4-418a-9d7d-72f530949233BrijrajRathodhttp://social.msdn.microsoft.com/Profile/en-US/?user=BrijrajRathodDSum Errors On Some Machinesuse below code,<br/> <br/> use <strong>nz</strong> to avoid headache of null value.<br/> <br/> IIf(DSum(&quot;<strong>nz(</strong> [Admin Cost],<strong>0</strong> )&quot;,&quot;[Temporary Expenditures Table]&quot;,&quot;Month(<strong>nz(</strong> [E Date]<strong>,0)</strong> )=10&quot;)&gt;0,DSum(&quot;<strong>nz(</strong> [Admin Cost]<strong>,0)</strong> &quot;,&quot;[Temporary Expenditures Table]&quot;,&quot;Month(<strong>nz(</strong> [E Date]<strong>,0)</strong> )=10&quot;),0)<hr class="sig">Rgrds, Brij http://accessvbadeveloper.wordpress.comThu, 09 Jul 2009 05:18:05 Z2009-07-09T05:18:05Zhttp://social.msdn.microsoft.com/Forums/en-US/isvvba/thread/8f5b9d7f-67b6-444c-82ba-69daded454fd#a99e370c-701c-483f-a101-f91be4d42fd6http://social.msdn.microsoft.com/Forums/en-US/isvvba/thread/8f5b9d7f-67b6-444c-82ba-69daded454fd#a99e370c-701c-483f-a101-f91be4d42fd6Fogiehttp://social.msdn.microsoft.com/Profile/en-US/?user=FogieDSum Errors On Some MachinesI had not heard of the nz function, but that might be it.  I will try it.  Thanks.<hr class="sig">The early worm gets the birdThu, 09 Jul 2009 14:58:24 Z2009-07-09T14:58:24Z