Results 1 to 3 of 3
  1. #1
    pabbiraj is offline Novice
    Windows XP Access 2003
    Join Date
    May 2012
    Posts
    2

    plz explain how to use iif in msaccess

    Actually, what i want to know, I have two text boxes, i.e.text1, text2. text1 contains numeric data i.e., 12,215,300,0.56....and text2 contained i.e ">=200","<=200","<10%".... I want to use the formula like this..if the text1 data is fallen in text2, then show as "Pass" else "Fail"..Plz see the data like this..

    Text1 Text2 Result
    12 >=200 Fail
    215 <=200 Fail
    150 >=100 Pass

    just like the data should come and the result column should show the result.

  2. #2
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,071
    The IIF Syntax is IIF(Evaluation part,Truepart,Falsepart) so IIF(1=1,"TRUE","FALSE") would display TRUE IIF(1=2,"TRUE","FALSE") would display FALSE. However, I have never attempted to use it where you would append 1 textbox to another text box to get the Evaluation part. I have no clue not only to how it would work but if it would work.

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726

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

Similar Threads

  1. Learn MSAccess by playing MSAccess Jeopardy
    By pkstormy in forum Sample Databases
    Replies: 4
    Last Post: 11-17-2016, 07:27 AM
  2. Can someone explain to me why this is not working
    By Darkladymelz in forum Programming
    Replies: 6
    Last Post: 03-19-2012, 05:55 AM
  3. Can someone explain how this works?
    By daveofgv in forum Access
    Replies: 3
    Last Post: 04-23-2011, 09:59 AM
  4. can anybody explain dirty event to me?
    By RedGoneWILD in forum Programming
    Replies: 3
    Last Post: 08-05-2010, 01:50 PM
  5. Could someone please explain to me what a Switchboard is
    By wabbalee in forum Database Design
    Replies: 2
    Last Post: 06-26-2009, 07:20 AM

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