Well for one thing, on your very last line, your "and" is being referenced as a visual basic keyword, and NOT a filter query.
rstRecordset.Filter = "Date='" & datefilter & "'" And "Name='" & namefilter & "'"
you never put and back in a string, something like:
rstRecordset.Filter = "Date='" & datefilter & "' And Name='" & namefilter & "'"
might be closer to what you are looking for ;) (the same principle about AND, being outside of the string, applies to the first query that doesn't work also)
Comatose
Taboo Programmer
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215