benjamin.grimm
Registered User.
- Local time
- Yesterday, 18:14
- Joined
- Sep 3, 2013
- Messages
- 125
hello 
i export a union query to excel by the following code:
How can i delte the first row of the querry? without doing a new querry?
greetz benjamin

i export a union query to excel by the following code:
Code:
Private Sub Befehl0_Click()
' Übersicht aufrufen
Dim xlApp As Object ' Excel.Application
Dim xlBook As Object ' Excel.Workbook
Dim xlSheet As Object ' Excel.Worksheet
Dim rst As DAO.Recordset
'Excel-Objekt öbffnen und Workbook hinzufügen
Set xlApp = CreateObject("Excel.Application")
xlApp.Visible = True
Set xlBook = xlApp.Workbooks.Open("E:\Michi\Export2.xlsx")
'In Tabellenblatt Gesamt schreiben
Set xlSheet = xlBook.Worksheets(1)
Set rst = CurrentDb.OpenRecordset("Vorratseinplannung_Setra_Gesamt")
xlSheet.Cells(7, 13 + Month(Date)).CopyFromRecordset rst
rst.Close
'Objekte schließen
Set rst = Nothing
Set xlSheet = Nothing
Set xlBook = Nothing
Set xlApp = Nothing
How can i delte the first row of the querry? without doing a new querry?
greetz benjamin