AllExperts > Experts 
Search      

Using MS Access

Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More Using MS Access Answers
Question Library

Ask a question about Using MS Access
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Manish Batola
Expertise
ALL MICROSOFT ACCESS DESIGN AND Development QUESTIONS which occur in a Access Projects Lifecycle. Can offer constructive help on Designing Advanced MS-ACCESS Applications such CRM/FRM(Follow-up),Chemicals Indenting,Import/Export,MRP - Manufacturing Resource Planning, ERP - Enterprise Resource Planning, Automotive Management Systems, Business Intelligence for Oil & Gas Drilling Operations, CRM,KPI- Key Performance Indicators,HealthCare, Hospitality, Constructions, Loyalty Clubs, Call Centers, Travel & Tourism, Educational Institutions and many more being added every year.

Experience
24 yrs in the Software industry with 18yrs completely dedicated on more than 200 Various Access Projects from different Industry Sector[s]. I'm using Access ever since it was born.

Organizations
Worked in various multinationals catering from Aerospace, Oil & Gas etc.

Education/Credentials
-MSAP (Master in Software & Applications Programming) -BPRE (Business Process Re-engineering Engineer) -SQAE (Software Quality Assurance Engineer) -STIE (Software Testing & Inspection Engineer) -Project Engineeer (Software Development)

Past/Present Clients
Catered to various clients in the following industries • Oil & Natural Gas (BPM/CRM/Access Development) • Sales / Marketing (CRM) • Automotive (Automobile Dealers) • Indenters (Import/Export) • HealthCare / Hospitals • Hotels 3* & 5* • Restaurants • Construction Co’s (Project Billing) • Clubs (Concept Selling) • Shoe-Chains • Solicitors/Lawyers • Call Centers • Aerospace (Preventive Maintenance) • Travel & Tourism • Computer Vendors • Manufacturing • Music Shops • Education • Data Warehousing

 
   

You are here:  Experts > Computing/Technology > Business Software > Using MS Access > Multiple If statements

Topic: Using MS Access



Expert: Manish Batola
Date: 7/25/2008
Subject: Multiple If statements

Question
I'm having trouble writing a multiple IIf statement in a query. Here are the conditions that I'm attempting capture.

IIF([Date of Visit]<[Hire_DATE] or [PROMODATE] or [TRANSDATE],[Date of Visit]+90), IIF([Date of Visit]>[Hire_DATE],[Hire_Date]+90), IIF(Date of Visit]>[PROMODATE],[PROMODATE]+90), IIF[Date of Visit]>[TRANSDATE],[TRANSDATE]+90))

Answer
Hi Terry,

If your gonna have an "OR" statement in your IIF() statements, then I would advice you to split this into a multi-liner if then else statement on the AfterUpdate event of your form field and then have the result on your query.

The iif() format example is as below

=IIf([Confirmed] = "Yes", "Order Confirmed", "Order Not Confirmed")

As per your statements I'm confused cause I cannot see where your condition fails. Try to get rid of the OR statements.

Best regards
Manish Batola.

Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.