Results 1 to 2 of 2
  1. #1
    Hello World is offline Novice
    Windows XP Access 2002
    Join Date
    Sep 2011
    Posts
    13

    Adding labels in new column

    Hi all,



    How do I do an if statement in Access so that if I have a column with numbers 1-7 in I can add a column next to it which shows the 1’s as “Daniel”, 2’s as “Bob”, 3’s as “Steve”, etc

    Thanks

  2. #2
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    Instead of an iif statement, I would create a new table with two fields.

    tblName
    NameID (PK)--Autonumber
    NameDesc --text

    Join this table with your existing table on the NameID and your field having the numbers.

    Make the NameDesc field part of your query. The names corresponding to the numbers will appear in this column in the query

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

Similar Threads

  1. Replies: 3
    Last Post: 09-28-2011, 04:29 PM
  2. Replies: 3
    Last Post: 07-28-2011, 11:24 AM
  3. Adding a lookup to a column
    By revnice in forum Access
    Replies: 4
    Last Post: 08-16-2010, 12:58 PM
  4. Adding text to column if match
    By niihla10 in forum Access
    Replies: 0
    Last Post: 08-26-2009, 01:39 PM
  5. Adding new column to make-table query
    By dtn118 in forum Access
    Replies: 2
    Last Post: 08-03-2008, 06:51 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