C
chris23892 via AccessMonster.com
what am I doing wrong here? I'm exporting a spreadsheet and I can only name
the querry a number. I need name the querry latters and numbers, but the VB
script will not work if it's named anything else:
Dim sXL As String, oXL As Object
sXL = "S:\blaa_blaa_blaa\Warranty Running Spreadsheets (All UNIT)\Pivot
Charts\iTC_pivot.xls" 'Full path of my preformatted target sheet
' 5 is the name of my querry. anything else besides a number will not work
DoCmd.TransferSpreadsheet acExport, , "5", sXL
Set oXL = CreateObject("Excel.Application")
oXL.Visible = True
oXL.WorkBooks.Open FileName:=sXL
the querry a number. I need name the querry latters and numbers, but the VB
script will not work if it's named anything else:
Dim sXL As String, oXL As Object
sXL = "S:\blaa_blaa_blaa\Warranty Running Spreadsheets (All UNIT)\Pivot
Charts\iTC_pivot.xls" 'Full path of my preformatted target sheet
' 5 is the name of my querry. anything else besides a number will not work
DoCmd.TransferSpreadsheet acExport, , "5", sXL
Set oXL = CreateObject("Excel.Application")
oXL.Visible = True
oXL.WorkBooks.Open FileName:=sXL