Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

exporting sql query defined

Forum home » Delegate support and help forum » Microsoft Access VBA Training and help » Exporting a SQL query defined in code to Excel

Exporting a SQL query defined in code to Excel

ResolvedVersion 2003

Kristin has attended:
Access Advanced course
Access VBA course

Exporting a SQL query defined in code to Excel

I have a database with various combo boxes that enable the user to filter out data and build their own query. On the click of a search button, the strSQL is displayed as the recordsource of a listbox. I want to export the listbox's recordsource to Excel. How can I do that?

 

Training courses

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Access tip:

Convert A Form Into A Report

If there is a form that you want to to save as a report:

1. Open that form in Design View
2. Select File and Save As
3. In the Save As Dialog box Select Report

The system creates a report based on the form.

View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.11 secs.