gnarpeggio
Registered User.
- Local time
- Today, 04:44
- Joined
- Jun 22, 2010
- Messages
- 74
Hello,
Recently, I've been working on developing a comprehensive search form for my staff to use when searching for records on our database. I found an excellent VBA code example on the forum a few days back (Thanks again gromit!) and I'm trying to get the results of said search exported to an Excel spreadsheet when the user clicks the "Export" button.
I use a Private Function called "BuildFilter" that runs and evaluates all criteria entered when the "Search" button is clicked, but is there a way to call the search results into an OutputTo method?
The form I'm using displays the results in a subform based on a query with no criteria (as it is filled by the user) but currently the OutputTo method exports all records since the command is only calling the original blank query.
I'm hoping to call the BuildFilter's results, then transfer the data to Excel. Any ideas?
Thanks!
Recently, I've been working on developing a comprehensive search form for my staff to use when searching for records on our database. I found an excellent VBA code example on the forum a few days back (Thanks again gromit!) and I'm trying to get the results of said search exported to an Excel spreadsheet when the user clicks the "Export" button.
I use a Private Function called "BuildFilter" that runs and evaluates all criteria entered when the "Search" button is clicked, but is there a way to call the search results into an OutputTo method?
The form I'm using displays the results in a subform based on a query with no criteria (as it is filled by the user) but currently the OutputTo method exports all records since the command is only calling the original blank query.
I'm hoping to call the BuildFilter's results, then transfer the data to Excel. Any ideas?
Thanks!