Results 1 to 4 of 4
  1. #1
    nstasiak is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    May 2015
    Posts
    2

    Beginner question, related to if statement.

    I have a linked excel table...

    Several columns show the numbers 1-3 and I would like to know how to write a statement to display Yes, No, or Moreinfo.



    I don't want the data altered in the table, I just want it to show differently in the form.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Expression in query or textbox:

    Choose([fieldname], "Yes", "No", "More Info")
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    nstasiak is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    May 2015
    Posts
    2
    How will it know to display Yes if the data entry is 3, etc.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Search Access Help for specifics about Choose() function (might also look into Switch()). The number value in [field name] corresponds to the position of the choices.

    If you want 3 to be Yes, 2 is No and 1 is More:

    Choose([field name], "More Info", "No", "Yes")

    However, the function will error if [field name] is null. If that is a possibility:

    Choose(Nz([field name],0), "More Info", "No", "Yes")
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Query question of beginner
    By Testar in forum Queries
    Replies: 8
    Last Post: 10-21-2014, 07:39 PM
  2. Replies: 5
    Last Post: 01-21-2013, 01:09 PM
  3. Beginner - basic question
    By kevinnice in forum Programming
    Replies: 3
    Last Post: 03-08-2012, 11:31 AM
  4. Possible Access Question (total beginner)
    By SRobertson in forum Access
    Replies: 1
    Last Post: 01-12-2012, 06:01 PM
  5. Relational Structure - Beginner Question
    By CrazyFileMaker in forum Access
    Replies: 2
    Last Post: 01-02-2011, 11:28 PM

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