Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need of exporting module - qry to particular sheet in Excel book

Status
Not open for further replies.

01491

ISP
Oct 30, 2001
17
0
0
GB
I need somehow to export a query onto a particular sheet in an Excel workbook. This is because I want to export a different query onto a different sheet in the same workbook.
I have enclosed the code so far: any help be much appreciated!!!
Sub Export()
DoCmd.TransferSpreadsheet acExport, 8, "QryNullInputbyKeyprocess", "K:\RiskMan\Risk Review\JohnA\Risk Mapping Tool\RAP Output.xls.", True
End Sub
 
All you need to do is change the query name while keeping the same file name. A second worksheet will automatically be created in the same workbook.

hth,

Hilbert
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top