Do Recordsets have Filters?

V

Van T. Dinh

It will be a filtered Recordset so you will need to remove
filter if you want all Records.

HTH
Van T. Dinh
MVP (Access)


-----Original Message-----
This should be an easy one to answer. I'm assigning:

Dim rs As DAO.Recordset
Set rs = Forms("myform").[mySubform].Form.RecordsetClone

Does rs have the filter that was applied to mySubform?
Does it "know" that it has this filter? (Meaning, can I
turn it off?) I want rs to have all the records that
mySubform could contain (before filters). Should I set
mySubform's FilterOn to False before the Set line?
 
G

Guest

Yeah, trial and error proved that too me.

Thanks for your response!

Van T. Dinh said:
It will be a filtered Recordset so you will need to remove
filter if you want all Records.

HTH
Van T. Dinh
MVP (Access)


-----Original Message-----
This should be an easy one to answer. I'm assigning:

Dim rs As DAO.Recordset
Set rs = Forms("myform").[mySubform].Form.RecordsetClone

Does rs have the filter that was applied to mySubform?
Does it "know" that it has this filter? (Meaning, can I
turn it off?) I want rs to have all the records that
mySubform could contain (before filters). Should I set
mySubform's FilterOn to False before the Set line?
Thanks for your help!
Kyle
.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top