N
nydia
i have a cmd button on a form and what i want this button
to do is when clicked, i want it to open the report on the
current client. i have the following code, but when the
button is clicked i get the following message "the action
or method requires a report name argument" how can i get
it to open this specific report for the current client??
Private Sub cmdOpenRpt4File_Click()
On Error GoTo Err_cmdOpenRpt4File_Click
Dim stDocName As String
Dim stlinkcriteria As String
stDocName = "rptClientInfo4File"
stlinkcriteria = "[ClientID]=" & Me![ClientID]
DoCmd.OpenReport stdoc, acPreview, stlinkcriteria
Exit_cmdOpenRpt4File_Click:
Exit Sub
Err_cmdOpenRpt4File_Click:
MsgBox Err.Description
Resume Exit_cmdOpenRpt4File_Click
End Sub
to do is when clicked, i want it to open the report on the
current client. i have the following code, but when the
button is clicked i get the following message "the action
or method requires a report name argument" how can i get
it to open this specific report for the current client??
Private Sub cmdOpenRpt4File_Click()
On Error GoTo Err_cmdOpenRpt4File_Click
Dim stDocName As String
Dim stlinkcriteria As String
stDocName = "rptClientInfo4File"
stlinkcriteria = "[ClientID]=" & Me![ClientID]
DoCmd.OpenReport stdoc, acPreview, stlinkcriteria
Exit_cmdOpenRpt4File_Click:
Exit Sub
Err_cmdOpenRpt4File_Click:
MsgBox Err.Description
Resume Exit_cmdOpenRpt4File_Click
End Sub