Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2023
    Posts
    6

    Report displaying field ID instead of field data

    I'm extremely new to access and my query is perfectly fine, but when I created a report from it, one field is displaying the ID instead of the data. What am I doing wrong?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    not sure. you did not provide the example.
    just change the SOURCE of the data in the box.

  3. #3
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,914
    Are you using table lookup for that field?, if so, don't.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  4. #4
    Join Date
    Apr 2023
    Posts
    6
    Majority of the other fields are pulling from table lookups and they're fine. It's just this one field.

  5. #5
    Join Date
    Apr 2023
    Posts
    6
    Sorry, I'm not sure what you mean by changing the source?

    I have a table called "Store" that is pulled into another table where there is a second field for "Sold Date" that is just filled in normally. I created a query that pulls this plus other information, that automatically displays "Sold Date" as today, and that query works perfectly. I created a report off of this query, but when I open that report, the "Store" part is not showing the Store name, it is showing the table ID from the Store table, so instead of information like Wal-Mart or Target, it is only showing 1 or 2.

  6. #6
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,914
    What RanMan means is you have the wrong field for the report?
    You need to use the field that is the description for the field that is having a lookup on it.

    What you really have is the ID, obfuscated by the lookup to appear be the description, but it is always the actual ID.
    Not sure how your others are working.

    A query from a table with lookups will show the looked up field, just as it would if you viewed the table. However I have just created a report on a query from the table with lookups and that shows same as query, so somewhere you have the wrong source for your Store control.

    I just tested on my very first DB that has table lookups (but I know what they are actually doing and have left them as DB is finished.) Since that DB I have learnt not to use them, even when I knwo exactly what is happening with them.

    Upload your DB with enough to see the problem with instructions on how to replicate, if you cannot resolve this. It sounds like you are using the Store FK from another table?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

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

Similar Threads

  1. Replies: 4
    Last Post: 06-22-2020, 06:41 PM
  2. Replies: 7
    Last Post: 11-25-2018, 11:31 PM
  3. Adding Field to Form but Data Not Displaying
    By PATRICKPBME in forum Forms
    Replies: 3
    Last Post: 08-04-2017, 01:53 PM
  4. Replies: 12
    Last Post: 10-21-2013, 07:46 AM
  5. Replies: 2
    Last Post: 03-07-2013, 04:50 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