![]() |
| |||||||
| Sponsored Links |
![]() |
| | LinkBack | Thread Tools | Display Modes |
|
#1
| ||||
| ||||
| Hi,. Does anyone have any code that i can put behind a shortcut menu bar button to print reports. The purpose of this code would be to print the report 3 times, 1) Normal print 2) Print with watermark "Stores" 3) Print with watermark "Accounts" Thanks, AOG
__________________ If i helped you, make me famous by clicking the ![]() |
| Sponsored Links |
|
#2
| ||||
| ||||
| Hey,.. well i figured it out ![]() The report will be printed from a form command button I created 2 Unbound Hidden text boxes on the form. Code: txtAccounts = Default Value - "Accounts" TxtStores = Default Value - "Stores" And Used the following code behind the Onclick Event of the form command button Code: Dim stDocName As String
stDocName = " ReportName "
DoCmd.OpenReport stDocName, acPreview
DoCmd.PrintOut
Reports.ReportName.txtWatermark = Forms!switchboard! txtAccounts
DoCmd.PrintOut
Reports. ReportName.txtWatermark = Forms!switchboard! txtStores
DoCmd.PrintOut
DoCmd.Close
1st printout = No Watermark 2nd printout = Accounts Watermark 3rd printout = Stores Watermark |
![]() |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|