Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 20th, 2003, 12:30 PM
Registered User
 
Join Date: Nov 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Print Dialogue for Forms per tab/page

Hi,Does anyone know how to give a print gap between each page. If you have any other solutions also, please let me know.

Thanks,
Jay
 
Old November 20th, 2003, 12:33 PM
Registered User
 
Join Date: Nov 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have the code to get a print dialogue box for each form also for each tab/page, but it's hectic for the users to click OK for each page. Please give me suggestions. Here is the code to get the print dialogue for each form.

Private Sub Form_Activate()
On Error GoTo Err_Form_Activate
    Dim strMsg As String
    Dim strTitle As String

    strMsg = "The Were No Records Returned." & vbCrLf & _
        "Print has been Canceled."
    strTitle = " No Records Returned"

    If Me.Form.HasData Then
        DoCmd.RunCommand acCmdPrint
        DoCmd.Close acForm, Me.NAME
    Else
        MsgBox strMsg, vbInformation + vbOKOnly, strTitle
        DoCmd.Close acForm, Me.NAME
    End If
Err_Form_Activate:
    Resume Next
    DoCmd.Close acForm, Me.NAME

End Sub

Thanks,
Jay.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Print 2 Forms using 1 Button matto336 Access VBA 4 September 26th, 2007 07:36 AM
How to print from windows forms?? tycotrix C# 1 January 11th, 2007 09:45 AM
Print Forms on Saperate Pages itHighway HTML Code Clinic 1 November 21st, 2005 08:04 AM
print the hidden page without the print dialog box kayzem Classic ASP Basics 0 April 21st, 2005 11:31 PM
Open Print dialogue box vladimir Access VBA 7 September 21st, 2004 08:46 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.