Results 1 to 2 of 2
  1. #1
    jbailey4545 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Posts
    14

    Format Issue

    Having trouble with the following:

    OxygenDevice: IIf([oxygen_related]=2,"TEST",IIf([oxygen_related]=1,"Mask","0"))

    If oxygen_related=2 it is still showing as 0

    I checked the table and oxygen_related is set to Number and can't get it to work correctly.

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    What number format is the field? Is it Integer or Byte?
    If it is something that allows decimals, you may have a floating arithmetic/rounding issue going on, and you may need to round the value first before checking it.
    Here is a link on the "floating arithmetic" situation: http://support.microsoft.com/kb/78113
    and the workaround (discussed from Excel standpoint, but concept is the same for Access): http://support.microsoft.com/kb/214118

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

Similar Threads

  1. Number format issue
    By stafjoy in forum Queries
    Replies: 5
    Last Post: 07-19-2012, 08:38 AM
  2. Code issue on Format of label
    By Gavroche in forum Reports
    Replies: 2
    Last Post: 09-14-2011, 06:19 AM
  3. Date format issue
    By di.miller in forum Queries
    Replies: 3
    Last Post: 03-17-2011, 09:36 AM
  4. Format Issue
    By trueblue7 in forum Reports
    Replies: 4
    Last Post: 12-04-2010, 10:50 PM
  5. Access 2007: Percent Format Issue
    By diane802 in forum Access
    Replies: 6
    Last Post: 12-30-2009, 10:29 AM

Tags for this Thread

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