Results 1 to 2 of 2
  1. #1
    carstenhdk is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    May 2010
    Location
    Denmark
    Posts
    42

    How many sheets of paper do I need?

    Hi




    I have a report which needs to be printed on special paper from a printer. The page setup is set for the printer choice and setup. Is it possible to make a messagebox appear when I click the print buttom - "Remember to bring [total page number pages] sheets of special paper with you!

    ?




    Carsten

  2. #2
    maximus's Avatar
    maximus is offline Expert
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Aug 2009
    Location
    India
    Posts
    931
    This is a code that is attached to a button to open a report. I have put a line highlighted in red that will display the message.




    Private Sub Command10_Click()
    On Error GoTo Err_Command10_Click

    Dim stDocName As String

    stDocName = "Table1"
    DoCmd.OpenReport stDocName, acPreview
    MsgBox "Please change page setup", vbInformation, "Change page Set up"

    Exit_Command10_Click:
    Exit Sub

    Err_Command10_Click:
    MsgBox Err.Description
    Resume Exit_Command10_Click

    End Sub


    if this solves your problem mark the thread solved.

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

Similar Threads

  1. export table to multiple sheets
    By TheShabz in forum Import/Export Data
    Replies: 5
    Last Post: 04-06-2010, 02:59 PM
  2. Replies: 0
    Last Post: 03-06-2010, 01:11 PM
  3. print report on paper for image
    By gromit95 in forum Reports
    Replies: 11
    Last Post: 01-12-2010, 08:09 AM
  4. Import excel sheets to access.
    By calexandru in forum Import/Export Data
    Replies: 0
    Last Post: 08-19-2009, 09:44 AM
  5. export to multiple sheets based on change in sort
    By mws5872 in forum Programming
    Replies: 0
    Last Post: 06-30-2009, 07:55 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