Hi, I am currently exporting queries based on a combo box selection to Excel 2010 using Access 2013. The combo box specifies the Team that the query retrieves data for. What I would like to do is include the combo box selection as part of the spreadsheet export i.e. name of file & team (as specified by combobox) & date & .xls. Here is what I have so far (this obviously works up until the combo box bit at the end):
Any help on this would be appreciated, I cant seem to find anything.
Thanks.
Code:
DoCmd.TransferSpreadsheet acExport, _ acSpreadsheetTypeExcel8, _ "Query name", _ "File Path" & _ Format(Date, "ddmmyyyy") & _ ".xls" & _ "[Forms]![Qry001_Main_Form]![Select_Team]"
Thanks.
Comment