J
JohnLute
I'm going nuts trying to reolve my print query button. It returns "Wrong
number of arguments" around where I've placed < >:
Private Sub qryPrint_Click()
On Error GoTo Err_Print_Click
Dim strDocName As String
Dim stLinkCriteria As String
'Check to see that ending date is later than beginning date.
If IsDate(BeginningDate) And IsDate(EndingDate) Then
If EndingDate < BeginningDate Then
MsgBox "The ending date must be later than the beginning date."
SelectDate.SetFocus
Exit Sub
End If
End If
strDocName = Me!cbSelectQuery
DoCmd.< OpenQuery > Me!cbSelectQuery, acNormal, acEdit _
, , strWhere
Exit_Print_Click:
Exit Sub
Err_Print_Click:
MsgBox Err.Description
Resume Exit_Print_Click
End Sub
Any help would be greatly appreciated!
Thanks!
number of arguments" around where I've placed < >:
Private Sub qryPrint_Click()
On Error GoTo Err_Print_Click
Dim strDocName As String
Dim stLinkCriteria As String
'Check to see that ending date is later than beginning date.
If IsDate(BeginningDate) And IsDate(EndingDate) Then
If EndingDate < BeginningDate Then
MsgBox "The ending date must be later than the beginning date."
SelectDate.SetFocus
Exit Sub
End If
End If
strDocName = Me!cbSelectQuery
DoCmd.< OpenQuery > Me!cbSelectQuery, acNormal, acEdit _
, , strWhere
Exit_Print_Click:
Exit Sub
Err_Print_Click:
MsgBox Err.Description
Resume Exit_Print_Click
End Sub
Any help would be greatly appreciated!
Thanks!