How to make a concantenated field pick up the detail rather than the ID of a field

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tennotrumps
    New Member
    • Feb 2010
    • 11

    How to make a concantenated field pick up the detail rather than the ID of a field

    Hi - I am running a query (to use for a report) where in several instances I concantenate the data from 2 or 3 separate fields into one. For some reason, where the original filed is populated by lookup from another table in some (but not all) of these "joined" fields it brings in the record ID rather than the details I have requested.

    Any ideas?

    I am using Access 2007
  • beacon
    Contributor
    • Aug 2007
    • 579

    #2
    Can you post the SQL for the query and maybe an example of the output?

    Comment

    • nico5038
      Recognized Expert Specialist
      • Nov 2006
      • 3080

      #3
      Guess you need to put the DLOOKUP into your query to get the data iso the ID.

      Did you try that ?

      Nic;o)

      Comment

      • Tennotrumps
        New Member
        • Feb 2010
        • 11

        #4
        Originally posted by beacon
        Can you post the SQL for the query and maybe an example of the output?
        I am really new to this - not sure what you are asking

        Comment

        • Tennotrumps
          New Member
          • Feb 2010
          • 11

          #5
          No - can you give me an example of how to do this please?

          Comment

          • nico5038
            Recognized Expert Specialist
            • Nov 2006
            • 3080

            #6
            Just place the DLOOKUP as (defined in the table for the field) instead of the field in a SELECT statement and use the field/table in the WHERE parameter to get the data from the other table.

            Another option is to add the related table and JOIN by the field to get the description from the other table.

            Nic;o)

            Comment

            • beacon
              Contributor
              • Aug 2007
              • 579

              #7
              If you still want to post the SQL, open the query, go to View, then choose SQL View.

              Did you have an example of the data you want to appear and an example of what is actually appearing?

              Comment

              Working...