Results 1 to 7 of 7
  1. #1
    tyguy is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2011
    Posts
    12

    Question Report not showing all records

    I created a report using the Report Wizard. I used fields from two different tables. I want the primary results to be from the primary table, and a subform/subreport created to contain the results from the related table. However, after I finished the wizard, it didn't show all the records from the primary table. Only the records that had related fields in the subform were displayed. If a record didn't have a related record in the subform, it just wouldn't show the primary record. (For example, in an address book with a subform containing children's names for each entry, if the entry doesn't have any children, that entry isn't included in the report at all.) Is there a certain feature that controls this? Thanks so much for any help. I'm using Access 2010.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    It sounds like the report is based on a query, and that query probably has an incorrect join. With the query in design view, right-click on the join line between the two relevant tables and select the appropriate option. If you're not sure, post the SQL of the query here.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    tyguy is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2011
    Posts
    12
    I'm basing the report off two different queries. I'm doing this for an assignment, and I need to create a report w/ subform based off two queries. (One query contains all records from one table, and the other query contains all records from the other table.) I'm using one query for the report records, and one for the subform records. I checked, and I didn't have a relationship established between the two tables the queries were based on, so I did that, but it didn't fix the problem. Do I have to establish a relationship between queries (since I'm drawing from two different ones) as well as a table in order to do what I'm trying to accomplish?

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Can you post the db?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    tyguy is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2011
    Posts
    12
    I have attached the db. I had to delete everything but the tables in order to upload it.

    Even though I just included the tables. I have to do the assignment based off of queries which were merely copies of the respective tables.

    So, if queries don't contain fields from multiple tables, but you plan on using two different ones in a report, do I have to establish a relationship between queries? I tried creating the report based off the tables (with the relationship established), but it didn't work. Thanks for the help.

  6. #6
    tyguy is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2011
    Posts
    12
    I just want to add that tblEntryListing is the primary table in the one-to-many relationship, and tblChildren is the related table. I want the report to show all results from the primary, and the results from the related in a subform if the related table contains records related to the primary.

  7. #7
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    You could probably have uploaded it by doing a compact/repair and then zipping. The tables alone aren't much help. I'd expect the report to be based on the main table and the subreport to be based on the many table, perhaps with master/child links keeping them in sync. You shouldn't need relationships established for this to work.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Not showing records with null sum
    By eww in forum Queries
    Replies: 3
    Last Post: 04-04-2011, 03:10 PM
  2. Replies: 1
    Last Post: 03-09-2011, 02:04 AM
  3. Query not showing all records
    By gazzieh in forum Queries
    Replies: 2
    Last Post: 02-17-2011, 08:11 AM
  4. Replies: 1
    Last Post: 02-16-2011, 09:08 AM
  5. Replies: 7
    Last Post: 12-07-2009, 07:27 AM

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