Results 1 to 3 of 3
  1. #1
    andrewm's Avatar
    andrewm is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2010
    Posts
    2

    Printing Blank Report

    I am using a macro in access 2003 to import data, collate it into a report and then print the report to paper to go with customer orders. I have another program running this so that it runs on a schedule with no human intervention. My issue is that I can't seem to get it to not print if the report does not have any data in it. I have tried the condition in the macro:
    Not IsNull([Reports]![In2Store Order Invoice]![txtOrder_Number])
    but it still prints. Please help I have been on this for a couple of days now.

  2. #2
    apr pillai's Avatar
    apr pillai is offline Competent Performer
    Windows XP Access 2003
    Join Date
    May 2010
    Location
    Alappuzha, India
    Posts
    209

    Printing Blank Report

    Copy and paste the following VBA Code into the Code Module of the Report:

    Code:
    Private Sub Report_NoData(Cancel As Integer)
         Cancel = True
    End Sub
    Save the Report with the Code.
    Try printing the Report when there is no data for the report.

  3. #3
    andrewm's Avatar
    andrewm is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2010
    Posts
    2
    That worked perfect. Sorry don't know much code so use macros and interface mostly.

    Thanks heaps

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. Filling in blank textbox on a report.
    By cowboy in forum Reports
    Replies: 3
    Last Post: 04-16-2010, 02:50 PM
  3. Hiding rows when blank in a report.
    By ser01 in forum Reports
    Replies: 0
    Last Post: 02-27-2010, 10:29 PM
  4. Report printing unknown blank lines.
    By dgrzalja in forum Reports
    Replies: 10
    Last Post: 11-02-2009, 12:21 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