A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

#Error



 
 
Thread Tools Display Modes
  #1  
Old May 21st, 2010, 02:00 AM posted to microsoft.public.access.queries
CAM[_2_]
external usenet poster
 
Posts: 48
Default #Error

Hello,

I am using Access 2003 I have a query where I add three fields together into
a new field in the same query, the problem is if one of the three fields
don't have an amount I get this #Error. Does anyone knows how to deal with
this.
Thank you in advance.

  #2  
Old May 21st, 2010, 02:58 AM posted to microsoft.public.access.queries
PieterLinden via AccessMonster.com
external usenet poster
 
Posts: 307
Default #Error

CAM wrote:
Hello,

I am using Access 2003 I have a query where I add three fields together into
a new field in the same query, the problem is if one of the three fields
don't have an amount I get this #Error. Does anyone knows how to deal with
this.
Thank you in advance.


use NZ() to convert the null value to zero, then you can add it.

Total: NZ([Field1],0) + NZ([Field2],0) ...

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...eries/201005/1

  #3  
Old May 22nd, 2010, 03:35 AM posted to microsoft.public.access.queries
CAM[_2_]
external usenet poster
 
Posts: 48
Default #Error

Thanks for your help!


Cheers,


"PieterLinden via AccessMonster.com" u49887@uwe wrote in message
news:a8503402827a2@uwe...
CAM wrote:
Hello,

I am using Access 2003 I have a query where I add three fields together
into
a new field in the same query, the problem is if one of the three fields
don't have an amount I get this #Error. Does anyone knows how to deal
with
this.
Thank you in advance.


use NZ() to convert the null value to zero, then you can add it.

Total: NZ([Field1],0) + NZ([Field2],0) ...

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...eries/201005/1


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:43 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.