Export Query Question

R

Richard

Hi all,

If I open a database window and select "Queries†then scroll down to a query
called qContacts. Then right click on the query and select export, I change
the Save as type to: Microsoft Excel 97-2000 Its exactly what I need. How can
I reproduce this behind a command button?

Richard
 
P

PieterLinden via AccessMonster.com

Richard said:
Hi all,

If I open a database window and select "Queries†then scroll down to a query
called qContacts. Then right click on the query and select export, I change
the Save as type to: Microsoft Excel 97-2000 Its exactly what I need. How can
I reproduce this behind a command button?

Richard

Use TransferSpreadsheet, and pass the query name as the object you want to
export. then call that in the Click event of your command button.
 

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