Results 1 to 7 of 7
  1. #1
    rdueck is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2009
    Posts
    1

    Field displays number instead of value

    Hi There, I know this may not seem difficult, but it's driving me crazy. I have a report based on a query. There's a field in the form that uses a lookup wizard which grabs a list from another table (a list of names)

    When I created and ran the query it displays the names. But when I run the report based on that query, it shows a number instead of the name.

    I'm grouping the report by name. How can I get the report to show the name instead of a number?



    Thanks for your help... Randy

    I understand it's the grouping that's killing me here. If I don't group by Name, it displays the name. If I do group by name it shows a number.
    Last edited by rdueck; 09-19-2009 at 05:09 PM. Reason: Update Information

  2. #2
    SoftwareMatters is offline Access VBA Developers
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2009
    Location
    Dorset
    Posts
    274
    I'm not sure about the grouping side of things but you probably need to change the field from a text box to a combo box. Or link the table in the query and bring the name field straight through to the report.

  3. #3
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You're not using a Lookup Field are you?

  4. #4
    Karend440 is offline Novice
    Windows XP Access 2007
    Join Date
    Nov 2009
    Posts
    6
    Just curious, same issue I am having. Is there an alternate method to using a Lookup Field? (ComboBox) I notice the same thing, when you select an item from the list, it is storing the "ID" field, and not the actual selection name from the list.

  5. #5
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You *want* to store the "ID" rather than the "text". You can always retrieve the "text" with a join in a query if you want to display it. ComboBoxes on forms is the right way to go, just not at the table level.

  6. #6
    Karend440 is offline Novice
    Windows XP Access 2007
    Join Date
    Nov 2009
    Posts
    6
    Thanks!
    I just have someone who just keeps using the tables instead of the forms, so I was curious to know if i was doing something wrong. He just doesn't want to look at an ID number instead of a real part number in the table. Appreciate the response!

  7. #7
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I don't let my users see the tables. They are forced to only use the forms I have provided.

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

Similar Threads

  1. Report the number of occurrences in a field
    By ecpike in forum Reports
    Replies: 1
    Last Post: 05-05-2009, 01:57 PM
  2. Replies: 1
    Last Post: 02-05-2009, 04:53 PM
  3. Replies: 1
    Last Post: 10-09-2008, 04:48 AM
  4. Concatenate two fields (text & number) for key field
    By Larry Elfenbein in forum Forms
    Replies: 2
    Last Post: 11-10-2005, 07:45 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