I
ielmrani via AccessMonster.com
Hi,
I am using a form to run a report based on a combo box and it's working fine.
I select a name from the combo box , and click on a button to open the
filtered report.
I would like to add to the form 2 text boxes to do a search by dates also.
So, my form will have a combo box and 2 text boxes (for dates)
Here is the code I used and it' s working so far:
Private Sub Command8_Click()
Dim strWhere As String
If IsNull(Combo0) = False Then
strWhere = "ProvNm = '" & Combo0 & "'"
End If
DoCmd.OpenReport "Qrytest", acViewPreview, , strWhere
End Sub
Thanks in advance
Ismail
I am using a form to run a report based on a combo box and it's working fine.
I select a name from the combo box , and click on a button to open the
filtered report.
I would like to add to the form 2 text boxes to do a search by dates also.
So, my form will have a combo box and 2 text boxes (for dates)
Here is the code I used and it' s working so far:
Private Sub Command8_Click()
Dim strWhere As String
If IsNull(Combo0) = False Then
strWhere = "ProvNm = '" & Combo0 & "'"
End If
DoCmd.OpenReport "Qrytest", acViewPreview, , strWhere
End Sub
Thanks in advance
Ismail