Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #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?
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 10:00 PM.

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