M
Marco
I disire filter subform with new condition too, where ID = ID+1 OR ID-1.How
can do it ?
now i use:
Dim strFilter As String
strFilter = ""
If Not IsNull(Me.txtE01) Then
strFilter = strFilter & " AND ((E_1=" & Me.txtE01 & ") OR (E_2=" &
Me.txtE01 & ") OR (E_3=" & Me.txtE01 & ") OR (E_4=" & Me.txtE01 & ") OR
(E_5=" & Me.txtE01 & ") OR (E_6=" & Me.txtE01 & ") OR (J=" & Me.txtE01 & ")
OR (S=" & Me.txtE01 & "))"
End If
If Len(strFilter) > 0 Then
strFilter = right(strFilter, Len(strFilter) - 5)
Me!frmtblS_subform1.Form.Filter = strFilter
Me!frmtblS_subform1.Form.FilterOn = True
Else
Me!frmtblS_subform1.Form.FilterOn = False
End If
thx
can do it ?
now i use:
Dim strFilter As String
strFilter = ""
If Not IsNull(Me.txtE01) Then
strFilter = strFilter & " AND ((E_1=" & Me.txtE01 & ") OR (E_2=" &
Me.txtE01 & ") OR (E_3=" & Me.txtE01 & ") OR (E_4=" & Me.txtE01 & ") OR
(E_5=" & Me.txtE01 & ") OR (E_6=" & Me.txtE01 & ") OR (J=" & Me.txtE01 & ")
OR (S=" & Me.txtE01 & "))"
End If
If Len(strFilter) > 0 Then
strFilter = right(strFilter, Len(strFilter) - 5)
Me!frmtblS_subform1.Form.Filter = strFilter
Me!frmtblS_subform1.Form.FilterOn = True
Else
Me!frmtblS_subform1.Form.FilterOn = False
End If
thx