How do I create a button to export query results to excel

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am working for a non-profit org and I am updating a database with some
things they would like to be able to do. I was wondering if there is a way to
create a button that would run a query and then export the results to an
excel spreadsheet. I konw how to do it manually but the people that will be
using the database aren't the most computer literate people so I was hoping
that I could just make a button and everything would just run behind the
scenes. Would I have to write code for this or could I make a macro?
 
I am working for a non-profit org and I am updating a database with some
things they would like to be able to do. I was wondering if there is a way to
create a button that would run a query and then export the results to an
excel spreadsheet. I konw how to do it manually but the people that will be
using the database aren't the most computer literate people so I was hoping
that I could just make a button and everything would just run behind the
scenes. Would I have to write code for this or could I make a macro?

Read VBA help on the TransferSpreadsheet method.
 

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

Back
Top