I came across a sample code for multiple field search form (please see below). One of the variables is the age. I wanted to replace it with date so that I can do search for particular date range. How can I modify the codes below. Thanks a lot
Private Sub btnClear_Click()
Dim intIndex As Integer
Me.txtMaxAge = ""
Me.txtMinAge = ""
End Sub
. . . . . . . . .
Check for min Age
' If Me.txtMinAge > "" Then
' varWhere = varWhere & "[Age] > " & Me.txtMinAge & " AND "
' End If
' Check for max Age
' If Me.txtMaxAge > "" Then
' varWhere = varWhere & "[Age] < " & Me.txtMaxAge & " AND "
' End If
Private Sub btnClear_Click()
Dim intIndex As Integer
Me.txtMaxAge = ""
Me.txtMinAge = ""
End Sub
. . . . . . . . .
Check for min Age
' If Me.txtMinAge > "" Then
' varWhere = varWhere & "[Age] > " & Me.txtMinAge & " AND "
' End If
' Check for max Age
' If Me.txtMaxAge > "" Then
' varWhere = varWhere & "[Age] < " & Me.txtMaxAge & " AND "
' End If