User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MS Access and FileMaker Pro section within the Web Development category of DaniWeb, a massive community of 362,342 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,775 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MS Access and FileMaker Pro advertiser:
Views: 13507 | Replies: 2
Reply
Join Date: Sep 2006
Posts: 2
Reputation: Bennita Martin is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Bennita Martin Bennita Martin is offline Offline
Newbie Poster

Help Microsoft Nested If statements with if, then, else

  #1  
Sep 12th, 2006
I am trying to complete a deliverable with an acess database, below IS the formula that I used and it returned errors with the brackets and commas.

Age: IIF([P1]>12,0),IIF([P1]=12, 12-[P2]/12)ELSE, IIF([P1]<=4, 100%.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Oct 2006
Location: Philippines but now in Saudi for International Work
Posts: 3
Reputation: jlopez is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jlopez jlopez is offline Offline
Newbie Poster

Solution Re: Microsoft Nested If statements with if, then, else

  #2  
Oct 4th, 2006
Originally Posted by Bennita Martin View Post
I am trying to complete a deliverable with an acess database, below IS the formula that I used and it returned errors with the brackets and commas.

Age: IIF([P1]>12,0),IIF([P1]=12, 12-[P2]/12)ELSE, IIF([P1]<=4,
100%.



IF your are putting this expression inside your calculated control, you can revise this one because in immediate iif statement you cannot put else statement

IIF([P1]<=4,"100%",IIF([P1]>12,0),IIF([P1]=12, 12-[P2]/12, "this will handle your else condition" ))
Reply With Quote  
Join Date: Mar 2007
Posts: 4
Reputation: Rupeshba is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Rupeshba Rupeshba is offline Offline
Newbie Poster

Solution Re: Microsoft Nested If statements with if, then, else

  #3  
Mar 31st, 2007
Originally Posted by jlopez View Post
IF your are putting this expression inside your calculated control, you can revise this one because in immediate iif statement you cannot put else statement

IIF([P1]<=4,"100%",IIF([P1]>12,0),IIF([P1]=12, 12-[P2]/12, "this will handle your else condition" ))



Hi...

u have problem in

IIF([P1]<=4,"100%",IIF([P1]>12,0,IIF([P1]=12, 12-[P2]/12, "this will handle your else condition" )))
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb MS Access and FileMaker Pro Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the MS Access and FileMaker Pro Forum

All times are GMT -4. The time now is 11:11 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC