Results 1 to 4 of 4
  1. #1
    hesca is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    14

    Concatenate in a query shows numbers instead of text

    Hello experts,



    Im a rookie so please forgive my ignorance. I have a query that converts a field into numbers when I try to concatenate it with other fields
    I have a query to concatenate fields into a "master code" for my products database. The product is "online courses". So, I have a table with the courses and a separate table to register the languages, as we may include more in the future.

    The Language field is a lookup type, grabbing its data from the "languages" table. In order to create the relationship, access stores it as a number.

    So, when I pull the field "language" from the "products" table and try to concatenate it with other fields, it shows as a number.

    I have this formula:
    Coursecode: [Lang] & [GroupCode]

    I want it to show: EN001
    but instead, it shows this: 1001

    How do I make it show the text?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    Are you sure your field [Lang], is the text version, and not the index. (number)?

    That formula is correct...its what's in it I cant see.

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    One of the many downsides to using lookup fields. In your query you need to include the language table and use the text field from there.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #4
    hesca is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    14
    Nevermind guys, I figured it out. Duh.

    To anyone who has this issue, just used key ID fields with the type of data you want to concatenate.

    Sorry everyone.

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

Similar Threads

  1. Replies: 2
    Last Post: 01-01-2013, 11:15 PM
  2. Text box shows ID field and not the Name
    By jzacharias in forum Access
    Replies: 5
    Last Post: 10-18-2012, 10:24 AM
  3. Replies: 3
    Last Post: 09-05-2012, 12:47 PM
  4. Replies: 5
    Last Post: 08-13-2012, 01:25 AM
  5. 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