am trying to filter the 3 subforms based off of the combo boxes and
textboxes. If I select one cbobox and hit submit it will filter the
first but not the 2nd and 3rd then if I hit submit againthe second and
third subform will filter.
Sumitt is a command button that has the followin code on the
onclick...
They are not filtering correctly
textboxes. If I select one cbobox and hit submit it will filter the
first but not the 2nd and 3rd then if I hit submit againthe second and
third subform will filter.
Sumitt is a command button that has the followin code on the
onclick...
Code:
Dim stFilter As String If NZ(Me.cboOpidCCE) <> "" Then stFilter = stFilter & " And [opidcce] = '" & Me.cboOpidCCE & "'" If NZ(Me.cboOpidARA) <> "" Then stFilter = stFilter & " And [opidara] = '" & Me.cboOpidARA & "'" If NZ(Me.CboProd) <> "" Then stFilter = stFilter & " And [origprodcd] = '" & Me.CboProd & "'" If NZ(Me.txtSession) <> "" Then stFilter = stFilter & " And [origsession] = '" & Me.txtSession & "'" If NZ(Me.txtPolicy) <> "" Then stFilter = stFilter & " And [cvtpolicy] = '" & Me.txtPolicy & "'" If NZ(Me.txtcheck) <> "" Then stFilter = stFilter & " And [checknumber] = '" & Me.txtcheck & "'" If NZ(Me.txtStobAmt) <> "" Then stFilter = stFilter & " And [netStob] = " & Me.txtStobAmt If Len(stFilter) > 0 Then stFilter = right(stFilter, Len(stFilter) - 5) Me!FCashApplicationBrokerSub.Form.Filter = stFilter Me!FCashApplicationBrokerSub2.Form.Filter = stFilter Me!fCashApplicationBrokersub3.Form.Filter = stFilter Me!FCashApplicationBrokerSub.Form.FilterOn = True Me!FCashApplicationBrokerSub2.Form.FilterOn = True Me!fCashApplicationBrokersub3.Form.FilterOn = True
They are not filtering correctly
Comment