mission2java
Programmer
Simple problem..
main form .. sub form...
I filter by right clicking in the sub form field and select "Filter By Selection" now I click a button to just loop through the FILTERED recordset..but it keeps showing me all the records..I just want the FILTERED records on the screen.
Set db = CurrentDb
strSQL = "SELECT * FROM Table1 WHERE '" & Forms!Form1!frmSubForm.Form.Filter & "'"
Set rs = db.OpenRecordset(strSQL)
If rs.BOF Then
'do nothing
Else
While Not rs.EOF
MsgBox rs("First".Value
rs.MoveNext
Wend
End If
This does not work
Anyone?????
Jon
main form .. sub form...
I filter by right clicking in the sub form field and select "Filter By Selection" now I click a button to just loop through the FILTERED recordset..but it keeps showing me all the records..I just want the FILTERED records on the screen.
Set db = CurrentDb
strSQL = "SELECT * FROM Table1 WHERE '" & Forms!Form1!frmSubForm.Form.Filter & "'"
Set rs = db.OpenRecordset(strSQL)
If rs.BOF Then
'do nothing
Else
While Not rs.EOF
MsgBox rs("First".Value
rs.MoveNext
Wend
End If
This does not work
Anyone?????
Jon