M
Mark Carlyle via AccessMonster.com
I made drop down boxes that search by a criteria and then filters by that
selection.. but I need the second to only search the filtered data.
What I have so far is each searches the entire recordset.
first search and filter
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[Bank State] = '" & Me![Combo19] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
DoCmd.GoToControl "bank state"
DoCmd.RunCommand (acCmdFilterBySelection)
second search and filter
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[Bank Name] = '" & Me![Combo30] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
DoCmd.GoToControl "bank name"
DoCmd.RunCommand (acCmdFilterBySelection)
each of these are from drop down boxes... I would like to make the second one
only search the data that was filtered by the first one.
selection.. but I need the second to only search the filtered data.
What I have so far is each searches the entire recordset.
first search and filter
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[Bank State] = '" & Me![Combo19] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
DoCmd.GoToControl "bank state"
DoCmd.RunCommand (acCmdFilterBySelection)
second search and filter
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[Bank Name] = '" & Me![Combo30] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
DoCmd.GoToControl "bank name"
DoCmd.RunCommand (acCmdFilterBySelection)
each of these are from drop down boxes... I would like to make the second one
only search the data that was filtered by the first one.