I want to export data from forms to excel. I can do the export to excel bit if I can get a copy of the recordset.
I have a form with a filter (that the user can turn on and off) and I want to copy only the filtered data to the duplicate recordset but when I do:
I get all the records not just the filtered ones. The filter being applied is:
Any suggestions on how to get a copy of just the filtered records?
I have a form with a filter (that the user can turn on and off) and I want to copy only the filtered data to the duplicate recordset but when I do:
Code:
Set rs = Me.Controls("SubMiscSiteAccess").Form.Recordset
Code:
me.filter = [sql statement here] me.filterOn
Comment