Chat with a LIVE Microsoft Access Expert!
 
       
 

         

   

Go Back   Access World Forums > Microsoft Access Discussion > Reports

 
 
Chat with a LIVE Microsoft Access Expert!
Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-03-2007, 05:39 AM
davea300 davea300 is offline
Registered User
 
Join Date: Mar 2007
Location: Scotland
Posts: 105
davea300 is on a distinguished road
Nested IIf statements

Hi

I have a report that shows a field which gets dats from a picklist used in a form. The picklist has 19 values, each one has description text and a number (2 separate fields). The number HAS to be stored in the table, no way around that for me.

When I display the field in a report the it (correctly) shows the number that has been selected and not the description text. I want to display the text in the report instead so I started using IIf statments in the report field:

= IIf([14a]=4,"Own property secured through employment/tied",
IIf([14a]=5,"Own property owning/buying",
IIf([14a]=6,"Parental/family home/relatives",
IIf([14a]=7,"Friends/Partners",
IIf([14a]=8,"Armed Services Acommodation",
IIf([14a]=9,"Prison",IIf([14a]=10 etc etc

It works fine but I get an error message when I add in more IIf terms, "expression is too complex". I have 18 IIf statements that I need to add.

Any way around this?
Reply With Quote
Sponsored Links
  #2  
Old 04-03-2007, 05:46 AM
Len Boorman Len Boorman is offline
Back in gainfull employme
 
Join Date: Mar 2000
Location: Coventry West Midlands UK
Posts: 1,923
Len Boorman is on a distinguished road
If the report is based on a query (which it should be) then simply link to the table storing the description and use the query to selectthe appropriate description.

No IIF statements required

L
Reply With Quote
Sponsored Links
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple IIF statements Corey Queries 2 11-16-2006 01:16 PM
Nested IIF uttwo Queries 3 10-26-2006 01:10 PM
Large Query Aggregate function error twiggy Queries 1 09-15-2006 08:34 AM
Too many iif statements for my query Mrs.Meeker Queries 10 05-23-2003 01:10 PM
Nested if statements in select case statements Mcgrco Modules & VBA 2 02-19-2003 01:36 AM


All times are GMT -8. The time now is 07:48 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
(c) copyright 2009 Access World