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 In Query Problem



 
 
Thread Tools Display Modes
  #1  
Old March 29th, 2007, 07:56 PM posted to microsoft.public.access.queries
Paputxi
external usenet poster
 
Posts: 26
Default #Error In Query Problem

I have a query where in one column I have a calculation that is suppose to
return a "G", "Y", or "R". However, due to non-existing values for some
instances of the data used in the calculation, I get "#Error" for those
values. However, I'd like to get the "#Error" to be replaced with "NA".
I've struggled with IIf and IsError, but no luck. Any suggestions would be
greatly appreciated. Thanks is advance.
  #2  
Old March 29th, 2007, 08:40 PM posted to microsoft.public.access.queries
John Spencer
external usenet poster
 
Posts: 7,815
Default #Error In Query Problem

Hard to say since you didn't post the calculation

IIF([Your Column] is Null, "NA", your current calculation goes here)

--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..

"Paputxi" wrote in message
...
I have a query where in one column I have a calculation that is suppose to
return a "G", "Y", or "R". However, due to non-existing values for some
instances of the data used in the calculation, I get "#Error" for those
values. However, I'd like to get the "#Error" to be replaced with "NA".
I've struggled with IIf and IsError, but no luck. Any suggestions would
be
greatly appreciated. Thanks is advance.



 




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 01:16 PM.


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