John,
I got it. It works great. Then I encounter another problem. I want filter spacific records like: "GroupBookingID=" & Me.BroupBookingID, where should I put this filter in the code below? Thanks.
DoCmd.TransferSpreadsheet transfertype:=acExport, _
spreadsheettype:=acSpreadsheetTypeExcel12Xml, _
TableName:="Query1", fileName:="C:\Users\Administrator\Desktop\Myfile.xlsx"
spreadsheettype:=acSpreadsheetTypeExcel12Xml, _
TableName:="Query1", fileName:="C:\Users\Administrator\Desktop\Myfile.xlsx"
Best Regards,
Kevin
Date: 2016-02-01 21:06Subject: Re: [MS_AccessPros] Export spacific date to excelKevin-
Write a query that extracts the info you want, then export the query to Excel.John Viescas, AuthorMicrosoft Access 2010 Inside OutMicrosoft Access 2007 Inside OutMicrosoft Access 2003 Inside OutBuilding Microsoft Access ApplicationsSQL Queries for Mere Mortals(Paris, France)
On Feb 1, 2016, at 1:09 PM, 'zhaoliqingoffice@163.com' zhaoliqingoffice@163.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:Dear All,Is that possible to export spacific data to excel? Is there any online examples available? Thanks in advance.Best Regards,Kevin
__._,_.___
Posted by: "zhaoliqingoffice@163.com" <zhaoliqingoffice@163.com>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (3) |
.
__,_._,___
Tidak ada komentar:
Posting Komentar