Wrox Programmer Forums
|
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 August 25th, 2004, 08:22 PM
Authorized User
 
Join Date: Jul 2004
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Tasha Send a message via Yahoo to Tasha
Default printing report

hi there,

i have a form with a button calls some code to open a report. i want to make it the printing event only happens once per record and if the user need 2 print the same data, he has to go to the second record,each time the next record chosen,i want accumulate the event and store it in a table as a sequence number. this sequence number will reset every 7 days. how do i do that?

Private Sub cmdPrint_click()
On Error GoTo Err_cmdPrint_Click

   DoCmd.OpenReport "rptlabel1"acViewPreview , ,"[LotID]=" & Me!LotID

Exit_cmdPrint_click:
Exit Sub
Err_cmdPrint_click:
MsgBox Err.Description
Resume Exit_cmdPrint_click
End Sub


tasha
__________________
tasha





Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing a Report gregalb Reporting Services 0 July 23rd, 2007 05:14 PM
Printing report Vince_421 Access VBA 0 May 2nd, 2007 05:39 AM
Printing Report rfarmer VB How-To 1 September 27th, 2006 06:39 AM
Error While printing report (Crystal report) vikaspaweb Pro VB 6 0 March 8th, 2004 09:53 AM
Printing Report jmss66 VB How-To 6 February 20th, 2004 01:10 PM





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