Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Importing / Linking / July 2005

Tip: Looking for answers? Try searching our database.

Exporting a Report/Query from Access to Excel

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jimmy - 13 Jul 2005 12:31 GMT
Hi,
I was looking to export data from an Access (2003) Report or Query into an
Excel worksheet or workbook.  In doing this, I want to create a button that
performs this function, instead of clicking on export data or save as.  The
reason for this is that I have a schedule in Access, but need to export to
other users that don't have Access but do have Excel.  Any other ideas would
be appreciated.

Thanks
Jim
JackP - 13 Jul 2005 13:38 GMT
on the "on click" event for your button, click on the ... and choose code
builder.
add the following line.

DoCmd.TransferSpreadsheet acExport, , "My_TableOrQuery", "C:\MyFile.xls", True

note the two commas - I'm missing out a parameter here to accept the default.
Obviously change "My_TableOrQuery" and "C:\MyFile.xls" to suit.
Jimmy - 14 Jul 2005 12:24 GMT
Thanks Jack, very helpful.
However, when I tried to export data that included checkboxes(yes/no) fields
into Excel, they do not move over, any idea why?

Thanks
Jimmy

> Hi,
> I was looking to export data from an Access (2003) Report or Query into an
[quoted text clipped - 6 lines]
> Thanks
> Jim
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.