G
Guest
well, the subject heading truncated the word 'expression' but you get the
idea...
i'm using a2k and i want to print a report which is contrained to just those
records having FollowUp dates the user specifies in two unbound l/u controls
on a form.
one of the buttons on the form is intended to give the user just a preview
of the report.
Private Sub TrackDM_Click()
On Error GoTo Err_TrackDM_Click
Dim stDocName As String
stDocName = "By DM: Patients on Follow-Up"
DoCmd.OpenReport stDocName, acViewPreview, [Date_on_List] & Between &
"#" & Forms![Tracking Print By DM]![StartDate] & "# And #" & Forms![Tracking
Print By DM]![StopDate] & "#"
Exit_TrackDM_Click:
Exit Sub
Err_TrackDM_Click:
MsgBox Err.description
Resume Exit_TrackDM_Click
End Sub
and this code seems to be giving a2k heartburn for some reason. the VBA
compiles alright but ends up landing in the error field (given). does anyone
have any light to shed on this thread?
idea...
i'm using a2k and i want to print a report which is contrained to just those
records having FollowUp dates the user specifies in two unbound l/u controls
on a form.
one of the buttons on the form is intended to give the user just a preview
of the report.
Private Sub TrackDM_Click()
On Error GoTo Err_TrackDM_Click
Dim stDocName As String
stDocName = "By DM: Patients on Follow-Up"
DoCmd.OpenReport stDocName, acViewPreview, [Date_on_List] & Between &
"#" & Forms![Tracking Print By DM]![StartDate] & "# And #" & Forms![Tracking
Print By DM]![StopDate] & "#"
Exit_TrackDM_Click:
Exit Sub
Err_TrackDM_Click:
MsgBox Err.description
Resume Exit_TrackDM_Click
End Sub
and this code seems to be giving a2k heartburn for some reason. the VBA
compiles alright but ends up landing in the error field (given). does anyone
have any light to shed on this thread?