A
A Moloney
Hi
I have a command button that prints a report when clicked
and has the following code;
Private Sub Print10a_Click()
On Error GoTo Err_Print10a_Click
Dim strWhere As String
Dim stDocName As String
strWhere = "Date=" & Me.Date
stDocName = "10aConfirmation"
DoCmd.OpenReport stDocName, acNormal, , strWhere
DoCmd.OpenReport stDocName, acNormal, , strWhere
Exit_Print10a_Click:
Exit Sub
Err_Print10a_Click:
MsgBox Err.Description
Resume Exit_Print10a_Click
End Sub
The problem that i have is that it prints two copies of
the report (which i want) but does not include the
information that is detailed on the table, it prints
blank fields. can anyone see a problem with the above
code (apart from the fact that i have a field
called ''Date'' (Access recognises this field for all
other functions/macros anyway)
Any help arreciated
I have a command button that prints a report when clicked
and has the following code;
Private Sub Print10a_Click()
On Error GoTo Err_Print10a_Click
Dim strWhere As String
Dim stDocName As String
strWhere = "Date=" & Me.Date
stDocName = "10aConfirmation"
DoCmd.OpenReport stDocName, acNormal, , strWhere
DoCmd.OpenReport stDocName, acNormal, , strWhere
Exit_Print10a_Click:
Exit Sub
Err_Print10a_Click:
MsgBox Err.Description
Resume Exit_Print10a_Click
End Sub
The problem that i have is that it prints two copies of
the report (which i want) but does not include the
information that is detailed on the table, it prints
blank fields. can anyone see a problem with the above
code (apart from the fact that i have a field
called ''Date'' (Access recognises this field for all
other functions/macros anyway)
Any help arreciated