Results 1 to 6 of 6
  1. #1
    Buakaw is offline Absolute novice
    Windows XP Access 2007
    Join Date
    Jan 2011
    Posts
    112

    Need help with Lookup Column

    Hi,


    I have a lookup column that's not displaying the values I expect. It's a "PhoneType" field and I expect it to display "Mobile", "Home", Pager" and so on. Instead I get only numbers. I've attached some screenshots of the Layout View as well as the Property Sheets, can anyone tell why this is happening? Thanks.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    If you are using Lookup Fields, don't! http://www.mvps.org/access/lookupfields.htm

  3. #3
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    A lookup field type attempts to be helpful by defaulting the bound column to the first; which is often a key ID value. b.t.w. I didn't look at your attachments - so am just being general. See this issue alot.

    The generic best example of a lookup field is the 50 USA state abbreviations; AK AL MN etc. The table can be 50 records, 1 field...and so the lookup puts that text into whatever address record you use it. Everything is fine. But if you make that State lookup table and include an autonumber field too, which is common for alot of people...so now the table is 2 fields - if that autonumber column is first - then the lookup is going to bind that number and not the 2 letters. which throws alot of people off. they go to make a report and instead of AK they see 1.....

    Remake & Be careful during set up is one solution. If you are too far down the road to change your table/lookup set up - then you can always get the values you need to see by modifying your queries to include the lookup-ed table with the join - and displaying the text field you need. There is no error - everything is normalized ok. You are just not getting the field displayed the way you need automatically.

    Of course Rural's advice is one solution too - a pretty widely held view by the serious db designers. But for the lighter users - in simple situations - the feature is fairly helpful.

    Hope this helps.

  4. #4
    Buakaw is offline Absolute novice
    Windows XP Access 2007
    Join Date
    Jan 2011
    Posts
    112
    Shucks. I just spent the last two days changing all the referenced tables with < 5 records into Lookup columns....

    Thanks for the tip. I thought I was "neatening up" the database...lol!

  5. #5
    caroleesuserid is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Feb 2012
    Posts
    1
    Quote Originally Posted by RuralGuy View Post
    If you are using Lookup Fields, don't! http://www.mvps.org/access/lookupfields.htm
    I had no idea! Can you recommend a site for learning about lookup-field alternatives?

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Lookup TABLES are just fine and can be used as the RowSource of a ComboBox on a form. Just don't have them at the TABLE level.

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

Similar Threads

  1. Import to Excel from Access column of LOOKUP data type
    By Derek in forum Import/Export Data
    Replies: 1
    Last Post: 12-06-2010, 06:27 PM
  2. Adding a lookup to a column
    By revnice in forum Access
    Replies: 4
    Last Post: 08-16-2010, 12:58 PM
  3. Lookup column relating items in same field
    By rmroberts76 in forum Access
    Replies: 8
    Last Post: 06-05-2010, 07:41 PM
  4. Use of Lookup Column Versus Listbox
    By P5C768 in forum Access
    Replies: 2
    Last Post: 02-25-2010, 02:00 AM
  5. Lookup values in one column from another record
    By cjayjones in forum Queries
    Replies: 16
    Last Post: 08-05-2009, 02:27 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