Hey all,
Almost there
!!! Im having trouble setting multiple option buttons to one text box: heres a simplified version of my code so far, but it all has the same subroutines and all that stuff.... whats happening is its not filtering... not sure what to do....
Almost there

Code:
Private Sub btnSearch_Click()
Me.frmWork.Form.RecordSource = "SELECT * FROM qryWork " & BuildFilter
Me.frmWork.Requery
End Sub
Private Sub Form_Load()
' Clear the search form
btnClear_Click
End Sub
Private Function BuildFilter() As Variant
Dim varWhere As Variant
Dim varItem As Variant
Dim intIndex As Integer
varWhere = Null ' Main filter
' Check for min date
If Me.txtdatemin > "" Then
varWhere = varWhere & "[Date] >= " & Me.txtdatemin & " AND "
End If
' Check for max date
If Me.txtdatemax > "" Then
varWhere = varWhere & "[Date] <= " & Me.txtdatemax & " AND "
End If
' Check if there is a filter to return...
If IsNull(varWhere) Then
varWhere = ""
Else
varWhere = "WHERE " & varWhere
' strip off last "AND" in the filter
If Right(varWhere, 5) = " AND " Then
varWhere = Left(varWhere, Len(varWhere) - 5)
End If
End If
BuildFilter = varWhere + varWhere1
End Function
Private Sub opt1_Click()
If opt1 = -1 Then
opt2 = 0
opt3 = 0
Dim varWhere1 As Variant
varWhere1 = Null ' Main filter
varWhere1 = varWhere1 & "[Col1] >= " & Me.txtMin & " AND "
varWhere1 = varWhere1 & "[Col1] <= " & Me.txtMax & " AND "
BuildFilter = varWhere1
End If
End Sub