Results 1 to 4 of 4
  1. #1
    koncreat is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2015
    Location
    U.S.
    Posts
    43

    Linked tables

    I have a main table and a second table that are linked by the primary key Issue_Number from the main table. The issue number field is an auto number field.

    Main table name is P1_active_sorts
    Secondary table name is P1_sorts


    When a user starts entering a record the issue number populates with the next number in sequence. The second table is in a subform.

    The problem I have is that when i run a report that pulls information from both tables the report is blank unless I go to the first record in the second table and enter at least a zero.



    I have attached a copy of the database and the record entered does show the problem i have if you go to reports and run the Gate Break Report and use 2/17/17 as the date.

  2. #2
    koncreat is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2015
    Location
    U.S.
    Posts
    43
    Here is a copy of the database
    Attached Files Attached Files

  3. #3
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,511
    In the query for your report, use a Left Join (arrow goes from P1_active_sorts to P1_sorts). This will give you all records from main table and if there is no record in 2nd table, those 2nd table fields will be blank.

  4. #4
    koncreat is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2015
    Location
    U.S.
    Posts
    43
    That worked thanks!

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

Similar Threads

  1. Linked Tables and UNC
    By JoeM in forum Programming
    Replies: 5
    Last Post: 10-24-2023, 02:08 PM
  2. Replies: 1
    Last Post: 02-07-2016, 02:41 PM
  3. Linked tables
    By zodiba in forum Access
    Replies: 1
    Last Post: 01-26-2016, 12:26 PM
  4. Replies: 4
    Last Post: 11-22-2013, 11:20 AM
  5. Replies: 5
    Last Post: 02-02-2012, 06:42 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