G
Guest
This search form no longer works.
Can someone help me find out the problem?
Thanks Jerry
Private Sub cmdView_Click()
On Error GoTo Err_cmdView_Click
Dim strWhere As String
Me.Visible = True
strWhere = ("[expirationdate]between #" & Me.FromDate & "# and #" &
Me!ToDate & "#) or ([begdate]between #" & Me.FromDate & "# and #" & Me.ToDate
& "#")
DoCmd.OpenReport ReportName:="rptLease", _
view:=acPreview, WhereCondition:=strWhere
DoCmd.SelectObject acReport, "rptLease"
Exit_cmdView_Click:
Exit Sub
Err_cmdView_Click:
MsgBox Err.Description
Resume Exit_cmdView_Click
End Sub
Can someone help me find out the problem?
Thanks Jerry
Private Sub cmdView_Click()
On Error GoTo Err_cmdView_Click
Dim strWhere As String
Me.Visible = True
strWhere = ("[expirationdate]between #" & Me.FromDate & "# and #" &
Me!ToDate & "#) or ([begdate]between #" & Me.FromDate & "# and #" & Me.ToDate
& "#")
DoCmd.OpenReport ReportName:="rptLease", _
view:=acPreview, WhereCondition:=strWhere
DoCmd.SelectObject acReport, "rptLease"
Exit_cmdView_Click:
Exit Sub
Err_cmdView_Click:
MsgBox Err.Description
Resume Exit_cmdView_Click
End Sub