K
K Crofts
Hi, i have a report that runs at the click of a command
button. The problem is that the report is printing a
report for each record, not just teh selected date (my
records are defined by the date field).
I need teh report to print just for the date shown on the
record at teh time, any ideas? below is my code for the
button. and thank you in advance.
Private Sub Command84_Click()
On Error GoTo Err_Command84_Click
Dim stDocName As String
Dim strWhere As String
strWhere = "DateField=#" & _
Me.Calendar1 & "#"
stDocName = "10aConf"
DoCmd.OpenReport stDocName, acNormal, , strWhere
Exit_Command84_Click:
Exit Sub
Private Sub
Err_Command84_Click:
MsgBox Err.Description
Resume Exit_Command84_Click
End Sub
button. The problem is that the report is printing a
report for each record, not just teh selected date (my
records are defined by the date field).
I need teh report to print just for the date shown on the
record at teh time, any ideas? below is my code for the
button. and thank you in advance.
Private Sub Command84_Click()
On Error GoTo Err_Command84_Click
Dim stDocName As String
Dim strWhere As String
strWhere = "DateField=#" & _
Me.Calendar1 & "#"
stDocName = "10aConf"
DoCmd.OpenReport stDocName, acNormal, , strWhere
Exit_Command84_Click:
Exit Sub
Private Sub
Err_Command84_Click:
MsgBox Err.Description
Resume Exit_Command84_Click
End Sub