i have a form with a 'Print' command button which launches a print job from the 'On click' event property.
the code to be found for that [Event Procedure] is:
Private Sub Command68_Click()
On Error GoTo Err_Command68_Click
Dim stDocName As String
stDocName = "Treatment and Toxicity"
Me.Refresh
DoCmd.OpenReport stDocName, acNormal, "", "[Patient Number] = " & Me![Patient Number] & " And [Current Cycle Number] = " & Me![Current Cycle Number]
Exit_Command68_Click:
Exit Sub
Err_Command68_Click:
MsgBox Err.Description
Resume Exit_Command68_Click
End Sub
now, when i press the Print command button, i am shown three enter parameter prompts in this order:
1) "Forms!Trtmnts_Admnstrd!Patient Number"
2) "Forms!Trtmnts_Admnstrd!CycleNum"
3) "Forms!Trtmnts_Admnstrd!Medication"
this doesn't make sense. anybody out there know how to make sense out of it willing to share?
the code to be found for that [Event Procedure] is:
Private Sub Command68_Click()
On Error GoTo Err_Command68_Click
Dim stDocName As String
stDocName = "Treatment and Toxicity"
Me.Refresh
DoCmd.OpenReport stDocName, acNormal, "", "[Patient Number] = " & Me![Patient Number] & " And [Current Cycle Number] = " & Me![Current Cycle Number]
Exit_Command68_Click:
Exit Sub
Err_Command68_Click:
MsgBox Err.Description
Resume Exit_Command68_Click
End Sub
now, when i press the Print command button, i am shown three enter parameter prompts in this order:
1) "Forms!Trtmnts_Admnstrd!Patient Number"
2) "Forms!Trtmnts_Admnstrd!CycleNum"
3) "Forms!Trtmnts_Admnstrd!Medication"
this doesn't make sense. anybody out there know how to make sense out of it willing to share?