Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old March 13th, 2015, 11:03 PM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Mar 2015
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help with IIf statement

I'm trying to use the following IIf statement, but I'm getting "The expression you entered contains invalid syntax." I am very new to using Access, so any help would be appreciated.

IIf( ([Math Raw]> 0 And [Math Raw] < 12), "Did not meet",
IIf( ([Math Raw]>=50 And [Math Raw]<=52),"Exceeded",
IIf( ([Prior Math Scale] >= 1710 And [Gain Score] >= 135), “Exceeded”,
IIf( ([Prior Math Scale] >= 1710 And [Gain Score] >= 52), “Met Progress”,
IIf( ([Prior Math Scale] >= 1710 And [Gain Score] < 52 And [Current Math Scale] > 1762), “Met”,
IIf( ([Prior Math Scale]< 1710 And [Gain Score] >=135), "Exceeded",
IIf( ([Prior Math Scale] < 1710 And [Gain Score] >= 31), "Met", "Did Not Meet")))))))

Is there a problem with the expression that has 2 "And"s?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I make this a IIF Statement Corey Access VBA 1 November 3rd, 2006 08:40 AM
Iif statement in Access rangeview Access 7 March 28th, 2006 01:14 PM
IIF Statement golden Access 2 August 3rd, 2004 01:32 AM
IIF Statement golden Access 3 July 12th, 2004 07:49 PM
IIF Statement Question fastcorvette Access 8 October 31st, 2003 11:01 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.