Results 1 to 5 of 5
  1. #1
    guyc is offline Novice
    Windows XP Access 2007
    Join Date
    May 2011
    Posts
    3

    Report w/ Subreport locks up Access 2007

    Hi,

    I have a report and subreport built around two tables which share an id. The first table is a list of road lengths, and the second contains three maintenance options for each road length in the first table. Quite literally a 1 to 3 relationship.

    I have built a report which shows the road lengths and the info that goes with them, and I want to add a subreport next to this info with the three maintenance options alongside. The report and subreport have been linked correctly, and when I run the report it initially shows the correct info in the way that I would like it.



    However, it then locks up and the status bar reports that it is calculating and then formatting, and it stays like this for a long time. I left it running over night and it was still in that holding pattern this morning.

    I've obviously missed something (hopefully simple!), but I've been away from Access for a while. Does anyone have any advice or pointers?

    The database is attached in a zip to this post. The main master report is Field_Validation_Report. Unimportant tables and links etc have been removed.

    Many thanks in advance
    g

    (Also, please forgive the terrible formatting, this was intended to be a proof of concept! I'll get the report working first, and then make it pretty!)

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    ummm...your report and sub report are NOT linked correctly. They can't be. I think it's impossible. your sub is sourced by a UNION query for one thing. and the links in the prop sheets of reports and forms are best used, and possible only used, with linked/related sources. none of your tables are related. there are no relationships set up at all in the sample you gave.

    so more than likely, I would guess that what you're trying to ask Access to do is just too complex. As in, something similar to when you get the "query too complex" message when you write an extremely long and involved query statement in the query builder.

  3. #3
    guyc is offline Novice
    Windows XP Access 2007
    Join Date
    May 2011
    Posts
    3
    ^ Hi, I knew that one was going to get caught, but I will say that I did try this with a straight table made from the union and that took ages too.

    Are you saying this should just be a simple case of enforcing a one to many relationship between two tables or is there something else as well as that in how I've set up the report?

  4. #4
    guyc is offline Novice
    Windows XP Access 2007
    Join Date
    May 2011
    Posts
    3
    Ok, tried making a table and then enforcing the relationship between the two. That worked much faster.

    Thanks for pointing that out. Like I said, I've been away from Access and querying etc for a while.

    Thanks heaps.
    g

  5. #5
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    i'm going to assume this is solved. Marked as such.

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

Similar Threads

  1. Combine Main Report with subreport
    By jortizz in forum Reports
    Replies: 2
    Last Post: 05-05-2011, 12:42 PM
  2. Replies: 4
    Last Post: 03-14-2011, 11:12 PM
  3. Replies: 3
    Last Post: 06-23-2010, 02:02 PM
  4. Report and Subreport
    By newbie in forum Reports
    Replies: 0
    Last Post: 02-16-2010, 12:14 PM
  5. Replies: 1
    Last Post: 05-21-2009, 08:13 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