main form with subform and then subsubform - how to get a single record to fit onto a printed page

Posted on 2011-10-25
Last Modified: 2012-05-12
I have a form with a sub form (which then has another sub-form) but when I go to print preview the contents of one record, it seems to have sprawled across 14 pages :-( when it should be 2 at most. I have tried resizing the width of the forms from properties but that doesn't seem to help at all. :-( . Suggestions much appreciated.
Question by:agwalsh
    LVL 61

    Assisted Solution

    Have you created a seperate report for this?  Or are you print previeing the actual form?

    (You have more control with a seperate report)
    LVL 61

    Expert Comment

    It might  help to see an uploaded copy of your database.
    LVL 47

    Assisted Solution

    by:Dale Fye (Access MVP)
    I am one of those purists that would argue that forms are designed for viewing and entering data.  Reports are for printing.

    Yes, Access gives you the ability to print a form, but you don't have the level of control you have with a report.

    Try this.   Open the form in design mode, then do a SaveAs.  This operation provides you with the opportunity to save your form as a report, so that all the general structure is already created.  Do that with your main form and each of the sub-forms.  Then change the SourceObjects on each of these new Reports that contains a "sub-report", to point at the reports rather than the forms.

    Now you can play with the positioning of the subreports and the controls in those reports to get the layout you are looking for.

    Author Comment

    by:agwalsh will take your suggestiions on board. It also is a solution for another database I am working on..appreciate it. A
    LVL 74

    Expert Comment

    by:Jeffrey Coachman
    <No Points wanted>
    ...before the "It's ok to print a form" Experts chime in...

    ...Once you go down three levels, the report (or form) starts to becomes difficult to read/understand anyway.

    With a report you can create a "Grouped" report, and save all the overhead associated with subreports/subforms (System resources, linking fields, managing events on multiple objects, ...etc)

    Also with reports it is easier to get subtotals, nice page breaks, Grouping, ...etc)

    LVL 61

    Expert Comment

    << ...before the "It's ok to print a form" Experts chime in... >>

    I didn't know we had any.     :)

    Accepted Solution

    @boaq2000 - will try out the suggestion but if I'm honest I really detest forms because I always seem to get stuck doing things like lining up textboxes (which then seem to mysteriously go out of alignment) and muttering nasty things to myself under my breath..
    @mbizup: I just need to be able to print out this form (sorry - newly incarnated report) for each session so let me go off and try that out.
    many thanks for the help from both of you :-)

    Author Closing Comment

    I ended up going a totally different route for this but really appreciate all the help

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
    This isn't a frequent question on EE. I must have seen it three or four times (among several thousand questions). However, I use this trick quite often, most frequently as a delayed Current event. A form does not expose it's calculation dependenc…
    Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
    In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now