Results 1 to 6 of 6
  1. #1
    snowboarder234's Avatar
    snowboarder234 is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    243

    Need foreign key data to display as text, not numerals

    I exported data from Access to Excel. One of the Excel columns is for listing the names of Publishers. However, the publisher column is set up as a foreign key so consequently this column displays the data for that field numerically, instead of text. Is it possible to list those exported publishers as text, and still have the publisher connected to the correct book title and how do I do that?


    Click image for larger version. 

Name:	foreignKey3.JPG 
Views:	16 
Size:	66.5 KB 
ID:	35356

    Click image for larger version. 

Name:	ForeignKey4.JPG 
Views:	16 
Size:	73.1 KB 
ID:	35358
    Attached Thumbnails Attached Thumbnails ForeignKey.JPG  

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Add the related table to the query so you can return the text value.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    snowboarder234's Avatar
    snowboarder234 is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    243
    Still getting numeric

    Click image for larger version. 

Name:	publisher6.JPG 
Views:	16 
Size:	84.0 KB 
ID:	35362
    Attached Thumbnails Attached Thumbnails publisher5.JPG  

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Did you change the field returned by the query to Publisher from that table instead of the fk field from the books table?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    kd2017 is offline Well, I tried at least.
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Posts
    1,165
    Try this Click image for larger version. 

Name:	yyy.jpg 
Views:	15 
Size:	64.1 KB 
ID:	35363

  6. #6
    snowboarder234's Avatar
    snowboarder234 is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    243
    PRAISE JESUS!!!!!! That was the issue. Thank you so much, kd2017. And thank you pbaldy. I appreciate the time both of you spent on this.

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

Similar Threads

  1. Replies: 8
    Last Post: 06-11-2014, 10:24 AM
  2. Replies: 2
    Last Post: 04-19-2012, 11:29 AM
  3. Selecting Only Numerals from Text Box
    By shenix2005 in forum Forms
    Replies: 1
    Last Post: 01-05-2011, 09:06 AM
  4. Foreign Data
    By bmiller in forum Queries
    Replies: 0
    Last Post: 03-21-2006, 01:02 PM
  5. Replies: 1
    Last Post: 03-02-2006, 06:17 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