Copy the Data from Access to Excel - in new Workbook
Sub Create_RecordSet()
Dim cn As ADODB.Connection
Set cn = CurrentProject.Connection
Dim rs As New ADODB.RecordSet
rs.ActiveConnection = cn
Dim SQL As String
SQL = "Select * from Employees"
rs.Open SQL
Dim XL As Excel.Application
Set XL = CreateObject("Excel.Application")
XL.Visible = True
Dim wkb As Excel.Workbook
Set wkb = Workbooks.Add
wkb.Windows(1).Visible = True
Dim sh As Worksheet
Set sh = wkb.Sheets("Sheet1")
sh.Range("A5").CopyFromRecordset rs
rs.Close
MsgBox "Recordset Copied by Creating new Workbook"
End Sub