Results 1 to 3 of 3
  1. #1
    Imhotep is offline Novice
    Windows 10 Office 365
    Join Date
    Sep 2021
    Posts
    2

    issue with report getting linked data from a junction table.

    Hello, I am new to access so bear with me. I have an issue with reports getting linked data from a junction table.



    As an example, I have three tables to create author - journal references.

    AuthorT = AuthorID (primary key)+ AuthorName
    JournalT = JournalID (primary key)+ JournalName
    AuthorJournalT (junction) = AuthorJournalID (primary key)+ AuthorID (foreign key) + JournalID (foreign key) + JournalNr + PageNr

    I create a report with recordsource AuthorJournalT and a textbox containing below

    =[AuthorID] & " " & [AuthorID] & ", " & [JournalID] & " (" & [JournalNr] & "), " & [PageNr]

    This displays the numbers (ID Values) linked to the authors and journals instead of their real names in AuthorT and JournalT.
    e.g. 1 1 3 (59), 65-85

    How do you get the report to show the linked AuthorName and JournalName instead of the ID nrs?

    your help would be much appreciated

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,914
    You do not use lookup fields in the database. You should use the ID field and join the relevant table by that.
    The lookup is actually doing the same thing, but hiding the fact from you.

    So remove the lokups and join the tables with respective fields.
    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

  3. #3
    Imhotep is offline Novice
    Windows 10 Office 365
    Join Date
    Sep 2021
    Posts
    2
    Thanks for the tip. Fixed it

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

Similar Threads

  1. Data entry/edit in a junction table
    By GrandpaEd in forum Access
    Replies: 33
    Last Post: 10-16-2019, 04:30 PM
  2. Open Report linked to Query Issue
    By McArthurGDM in forum Reports
    Replies: 6
    Last Post: 07-22-2014, 12:13 PM
  3. How to query data from junction table?
    By bigal0043 in forum Queries
    Replies: 1
    Last Post: 05-24-2013, 03:03 AM
  4. Access 2007 junction table issue
    By dwilson in forum Access
    Replies: 11
    Last Post: 08-07-2011, 03:39 PM
  5. Enter Data into a Junction Table
    By darkwan75 in forum Database Design
    Replies: 3
    Last Post: 04-13-2011, 08:55 PM

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