Results 1 to 4 of 4
  1. #1
    jlk is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Nov 2012
    Location
    Australia
    Posts
    11

    Error 3070 when running report

    Hi, I have a report that prints the last 12 months worth of data. I have options within my forum to select the parameters of this report. The report covers 200 staff. And one of the parameters i have is that you can select a team from these staff. (approx 15 staff per team).


    However the problem i'm having is that not every team has data each month.

    I have a button on my form to export the report to PDF once the team has been selected. I'm receving Error 3070 when there is no data for a month.

    My button is running off code.

    DoCmd.OutputTo acOutputReport, "rptFINALCSOOutlierTrendV3", acFormatPDF, , True, , , acExportQualityScreen

    The report runs perfectly fine when all staff are selected. The error is only occuring when there is no data for a month within the team selection.

    Can anyone offer any solutions on what I can add to either the code or the query that it runs off to fet around this issue?

    Your help is much appreciated.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Google: Access report no record

    Review http://office.microsoft.com/en-us/ac...010158277.aspx
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    jlk is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Nov 2012
    Location
    Australia
    Posts
    11
    Quote Originally Posted by June7 View Post
    Google: Access report no record

    Review http://office.microsoft.com/en-us/ac...010158277.aspx
    Thanks June7, however this does not answer my question. It only shows how to cancel the print when there is no data. i have data for 11 out of the 12 months. My report needs to have the last 12 months dates as headings, as it would be a great hassle to remove the record source when there is no data for a specific month. As this report is run many times for differnet parameters.

    An example of my report is: Every month for the last 12 months has data except for December. the 3070 error is stating no data for December. My report runs off a crosstab query. How can I get the text box in the report that the record source is December to remain blank due to no data?

    Thanks

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Getting error code 3070 for combo box
    By lycialive in forum Forms
    Replies: 9
    Last Post: 12-26-2012, 01:21 PM
  2. Error 3070 When Navigating to a Record
    By Epidural in forum Access
    Replies: 1
    Last Post: 05-10-2012, 09:14 AM
  3. Replies: 0
    Last Post: 03-14-2012, 12:21 PM
  4. running sum? help? syntax error?
    By manos39 in forum Queries
    Replies: 0
    Last Post: 02-15-2011, 07:32 AM
  5. Replies: 2
    Last Post: 09-30-2009, 09:40 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