Results 1 to 9 of 9
  1. #1
    MatN is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2010
    Posts
    6

    Exclamation Field ID Problem

    I have a Query where I am referencing a field called "PickupLocation" in a separate table, however the "PickupLocation" field itself is derived from a separate table ("tblLocation") where there are numerous fields, including "BusinessID", "BusinessName", "FloorSuite", etc. - all fields that make up one "PickupLocation". When I run the Query, I receive only "BusinessID" in the "PickupLocation" field, where I would like the Query to return the whole range of fields contained in the associated record at "tblLocation". Is this possible?

  2. #2
    RedGoneWILD is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jun 2010
    Posts
    105
    if i understand correctly what you want...you have to concatenate the fields

    so in design view in the "Field:" section, enter......Pickup Location: BusinessID & BusinessName & FloorSuite

    Pickup Location will be what the column is named when you run the query....anything after : will be what is concatenated....if you want to add spaces between them, put & " " & between each field

  3. #3
    MatN is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2010
    Posts
    6
    I think this would work under normal circumstances. However, when I add "tblLocation" to the query, I lose all my records, so it doesn't seem to be running properly.

    You see, the original query is based on the table "tblProvTransDeliveries" and searches for records with a null value in the "VendorInvoiceNumber" field. The query works fine at this point, except for the ID values as opposed to the full addresses. Once I add the second table, everything goes sideways ...

  4. #4
    RedGoneWILD is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jun 2010
    Posts
    105
    i think you need to save the first view as a query with all fields included...then try running it on the query you saved

  5. #5
    MatN is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2010
    Posts
    6
    I'm not sure I understand ...

  6. #6
    RedGoneWILD is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jun 2010
    Posts
    105
    it probably has to do with the way they are joined

    can u post the db?

  7. #7
    MatN is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2010
    Posts
    6

  8. #8
    MatN is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2010
    Posts
    6

  9. #9
    MatN is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2010
    Posts
    6
    In Post #7 is the original query, in Post #8 is what happens when I run that query, and then the same query with the table I want to add, but messes up the query results. Sorry I can't post the whole database, but there are privacy issues.

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

Similar Threads

  1. Replies: 1
    Last Post: 05-05-2010, 01:54 AM
  2. Replies: 2
    Last Post: 09-26-2009, 07:19 AM
  3. bigint field type problem
    By hakeem7777 in forum Access
    Replies: 0
    Last Post: 09-21-2009, 08:10 PM
  4. Problem with date field...
    By Rameez in forum Access
    Replies: 9
    Last Post: 06-23-2009, 10:29 AM
  5. Replies: 3
    Last Post: 06-03-2009, 07:15 AM

Tags for this Thread

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