Results 1 to 10 of 10
  1. #1
    Pfunk11 is offline Novice
    Windows 10 Access 2016
    Join Date
    Jun 2017
    Posts
    4

    Query Populating Primary key instead of text


    I've created an expression to select text from a table, but the expression is populating primary key instead of the text. How do I change the expression to show text?
    Attached Files Attached Files

  2. #2
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    I cannot download files from my current location.
    Can you post your expression?

  3. #3
    Pfunk11 is offline Novice
    Windows 10 Access 2016
    Join Date
    Jun 2017
    Posts
    4
    Hopefully, you're able to open this via Word doc.
    Attached Files Attached Files

  4. #4
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    No, I am unable to download ANY files from the internet, per company security protocol.

  5. #5
    Pfunk11 is offline Novice
    Windows 10 Access 2016
    Join Date
    Jun 2017
    Posts
    4
    Absolutely, the expression is listed below.

    Expr1: [qryDJLPlisting].[D] & " " & [qryDJLPlisting].[J] & " " & [qryDJLPlisting].[L] & " " & [qryDJLPlisting].[P]

  6. #6
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    What exactly are your "D", "J", "L", and "P" fields?
    Are they Combo Box fields? If so, what is their source?
    Note that if there source has multiple columns (i.e. and ID value and then a Value), it may be pulling the ID portion.

  7. #7
    Pfunk11 is offline Novice
    Windows 10 Access 2016
    Join Date
    Jun 2017
    Posts
    4
    The "D", "J", "L", and "P" are fields in a table and they are short text data type fields.
    I populate the "D", "J", "L", and "P" in the table from a form that uses combo boxes to limit choices for the "D", "J", "L", "P" fields.

  8. #8
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    This could be difficult for me to decipher without seeing your database. I should be home in a few hours, and maybe I can download your database then and take a look at it, if no one else gets the chance to do that before then.

  9. #9
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    I populate the "D", "J", "L", and "P" in the table from a form that uses combo boxes to limit choices for the "D", "J", "L", "P" fields.
    Are the Row Sources of the combo boxes a Value List or a table/query?

    If a Value List, you might have to use the Choose() function to get the text.
    If a table/query, add the tables to "qryDJLPlisting", then add the fields that contain the text to the grid instead of the PK field.

  10. #10
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    I had mistakenly thought that you attached the database in the first post, but I see it is just a PDF.
    If you can post the database, we will be able to analyze it to see exactly what is going on.
    Just be sure to remove any sensitive information first.

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

Similar Threads

  1. Replies: 1
    Last Post: 08-04-2014, 07:37 AM
  2. query column not populating text box.
    By mejia.j88 in forum Queries
    Replies: 2
    Last Post: 02-23-2012, 02:48 PM
  3. Replies: 4
    Last Post: 12-18-2011, 05:55 PM
  4. Replies: 17
    Last Post: 08-19-2011, 01:19 PM
  5. Replies: 15
    Last Post: 09-18-2010, 01:19 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