Advertisement

05.05.2008 at 08:09AM PDT, ID: 23376609
[x]
Attachment Details

Print more than one report at a time

Asked by DavidDF1913 in Access Coding/Macros, Microsoft Access Database

I print a report several times a day of new internet orders.  At present, clicking on a button prints current order.   User moves to next new order (if any) and clicks to print again.  When order record is printed a field called notes is filled in with date and time pninted.   I want to print all records that have not been printed (notes field is blank or null).  

example:  table - hOrders
 do while hOrders.notes is null
     print
enddo

This is current form:
Private Sub prtOrder_Click()
On Error GoTo Err_prtOrder_Click

' Revised 6/30/05
' Print single internet order when form 'Homestead Orders' button
' is clicked. Print current record based on report
' settings of report 'CurrentRcdEnv'

   Dim stDocName As String
   Dim strwhere As String
   Dim strNote As String
   
   strNote = " * Printed " & Now() & " *"
   Me![comment2] = Me![comment2] & strNote
   stDocName = "HomesteadOrdReport"
   strwhere = "[inv_no] = " & Me![inv_no]
     
   DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
   DoCmd.OpenReport stDocName, , , strwhere

Exit_prtOrder_Click:
    Exit Sub

Err_prtOrder_Click:
    MsgBox Err.Description
    Resume Exit_prtOrder_Click
   
End Sub

davidStart Free Trial
[+][-]05.05.2008 at 09:29AM PDT, ID: 21501130

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.05.2008 at 01:46PM PDT, ID: 21502857

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.07.2008 at 08:04AM PDT, ID: 21517181

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.07.2008 at 09:46AM PDT, ID: 21518190

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Access Coding/Macros, Microsoft Access Database
Sign Up Now!
Solution Provided By: grendel777
Participating Experts: 1
Solution Grade: A
 
 
[+][-]06.04.2008 at 06:26PM PDT, ID: 21715765

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]06.08.2008 at 07:46PM PDT, ID: 21740790

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628