Results 1 to 3 of 3
  1. #1
    colinw is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    2

    Report Prints Blank Unless All Form Fields Are Completed

    Not 100% sure is the is a form or a report question.



    I have an Access database containing multiple tables. The database was created using Access 2010 but is saved as an .mdb.

    One table is called customerInfo and has name, address,etc.
    Another table is called 'questions' and has a list of questions I want to ask each customer.
    The answer options for each question in the questions table are pulled from several other tables.

    I created a form that has customers fill in values that are written to the customerInfo table and then answer questions. Each question answer table is linked to the customerInfo table. As questions are answered, linked entries are made in each table. Once completed the customer clicks a button on the form that prints their information on a sheet of perforated paper.

    Everything works great (the report prints as desired) as long as the customer answers each question in the form. If they don't answer each question the form prints with no data, not even what was provided.

    When the customer does not answer a question that populates a linked table with data it causes the query used to create the report to return no data. This almost makes sense to me since there are no entries in the supporting "question answer" tables. But why I get NOTHING back is eluding me.

    I have tried making the fields required and I have tried setting default values but neither get the form to populate with data.

    Can someone give me a suggestion on how to get the form to print whatever is provided regardless of how much is provided?

    Thanks.

    Colin

  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
    The report doesn't appear to have a valid source, or I just got a bad download. From the sound of it, I suspect its source query looks like:

    SELECT...
    FROM OneTable INNER JOIN AnotherTable

    You can edit that join in design view by right clicking on the join line, or change it in SQL view to

    FROM OneTable LEFT JOIN AnotherTable

    presuming "OneTable" is the main table containing all the customers.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    colinw is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    2
    Quote Originally Posted by pbaldy View Post
    The report doesn't appear to have a valid source, or I just got a bad download. From the sound of it, I suspect its source query looks like:

    SELECT...
    FROM OneTable INNER JOIN AnotherTable

    You can edit that join in design view by right clicking on the join line, or change it in SQL view to

    FROM OneTable LEFT JOIN AnotherTable

    presuming "OneTable" is the main table containing all the customers.
    I re-zipped it and am posting the database again. In the meantime I am exploring your suggestion.

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

Similar Threads

  1. Replies: 4
    Last Post: 12-13-2010, 05:33 PM
  2. Printing Error:Prints form instead of report
    By jordanturner in forum Access
    Replies: 1
    Last Post: 12-08-2010, 04:42 AM
  3. underlying form prints instead of report
    By usmcgrunt in forum Reports
    Replies: 1
    Last Post: 09-17-2010, 05:22 AM
  4. Report Prints Out Before Previewing
    By Schwagr in forum Reports
    Replies: 2
    Last Post: 03-18-2006, 02:15 PM
  5. report prints blank page at end of report
    By darrellx in forum Forms
    Replies: 0
    Last Post: 03-14-2006, 08:51 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