Results 1 to 7 of 7
  1. #1
    vCallNSPF is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Dec 2009
    Posts
    49

    Subreports with no values

    I have a generic database that can be used for all of my clients electronics equipment.

    None of this equipment is linked into other tables but i need to display it in one big report. ive done this by making a main report with several subreports from each equipment table. now this works fine if each client has at least 1 of every type of equipment because the rest of the report moves automatically if i add new equipment. However if they dont have a certain type of equipment and i leave that table blank, it leaves a big white space on my final report where the subreport for that equipment would usually be.



    how do i make it so that it just ignores blank subreports, or how do i make it recognise that there isnt information there

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    What happens when you put:
    Me.Visible = Me.RecordSet.Recount > 0
    ...in the OpenEvent of the SubReport?

  3. #3
    vCallNSPF is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Dec 2009
    Posts
    49
    Quote Originally Posted by RuralGuy View Post
    What happens when you put:
    Me.Visible = Me.RecordSet.Recount > 0
    ...in the OpenEvent of the SubReport?
    do you mean the On Open property?,

    This comes up with an error message saying "The expression On Open you entered as the event property setting produced the following error: The object doesnt contain Automation object 'Me.'."

    I think the problem is, (this is the webdesign part of me thinking here) i have them floating on the main report like floated sections on web pages, so each subreport doesnt recognise that another one is there. Problem is i dont know how to change that, haha.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I'm out of suggestions, sorry.

  5. #5
    vCallNSPF is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Dec 2009
    Posts
    49
    Quote Originally Posted by RuralGuy View Post
    I'm out of suggestions, sorry.
    its alright, thanks anyway

  6. #6
    vCallNSPF is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Dec 2009
    Posts
    49
    Okay, I've solved this.

    Basically it was shifting everything down when new information goes in, but it wasn't shifting up if there was no information in the tables. This was because id positioned each subreport down the main report in order without resizing them. If you put them in the order that you want them to appear and resize the height to 0, position them as close as possible WITHOUT overlapping, the height will be the space that is displaced when there is nothing in that paticular table. so if the height is 0, then 0 space is shown so the next subreport will show directly after.

  7. #7
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Thanks for posting back with your solution.

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

Similar Threads

  1. Sumarizing Subreports
    By trop in forum Reports
    Replies: 0
    Last Post: 07-29-2009, 10:43 AM
  2. PivotGraph Subreports
    By smokeybill08 in forum Reports
    Replies: 1
    Last Post: 06-10-2009, 11:33 AM
  3. Hiding subreports
    By aouellette in forum Reports
    Replies: 0
    Last Post: 09-12-2008, 08:02 AM
  4. Multiple Subreports with page break
    By rayc in forum Reports
    Replies: 7
    Last Post: 09-02-2006, 06:59 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