Results 1 to 2 of 2
  1. #1
    coach32 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Aug 2011
    Posts
    47

    Iif statement with multiple criteria

    In my select query I have two columns of data - Priority - Complexity. I want to be able to populate a new field with, for eg: 'P1' if 'Priority' = 3-Medium and 'Complexity' = Medium, or a 'P2' if I have 2-Low and High. Could someone please show me what the IIf statement should/could look like? Thank-you in advance for your assistance.

  2. #2
    cap.zadi is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Location
    KSA
    Posts
    481
    hello man, please read this one which is working nicely and get into ur data.

    I have the following fields;

    Sample No, Reading, Leakage, Stnd Values, Results,
    1 0.048 Not Found 0.07 Passed


    suppose if there is stnd values set for a test is 0.07 and have +5% allowance so when data is entered in the "Reading" field it should filled up the "Leakage" and "result" fields, there was "no leakage found" and "faild or passed" vice versa.


    In your Leakage Textbox, place this calculation:

    =iif([Reading]<([Stnd Values]-[Stnd Values]*.05) or [Reading]>([Stnd Values]+[Stnd Values]*.05),"Leakage Found","No Leakage Found")

    and a similar formula for the results field.


    regards.

    zee

Please reply to this thread with any new information or opinions.

Similar Threads

  1. list box with multiple criteria
    By white_flag in forum Access
    Replies: 6
    Last Post: 07-25-2011, 11:25 AM
  2. Replies: 1
    Last Post: 07-13-2011, 11:00 AM
  3. multiple optional criteria
    By TheShabz in forum Programming
    Replies: 7
    Last Post: 07-05-2011, 05:13 PM
  4. Multiple criteria in DLookup
    By crowegreg in forum Forms
    Replies: 7
    Last Post: 06-22-2011, 01:47 AM
  5. Search with multiple criteria
    By injanib in forum Forms
    Replies: 1
    Last Post: 01-16-2011, 11:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums