P
Pam
Hi,
I have the following code to export a query to excel using a command button.
It was working well. Now user tells me he can't get it to work. If I log
on to the database, it works for me. If I log on using his log on info, it
doesn't work. Can anyone please tell me why and what I need to do to
correct this? Any help is appreciated.
Private Sub Command10_Click()
Dim strFolderAndFile As String
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9,
"qStatusDayCountAllJobs", "C:\DELTADB\AllJobs.xls"
Dim oApp As Object
Set oApp = CreateObject("Excel.Application")
oApp.Workbooks.Open "C:\deltadb\AllJobs.xls"
oApp.Visible = True
End Sub
Thanks in advance,
Pam
I have the following code to export a query to excel using a command button.
It was working well. Now user tells me he can't get it to work. If I log
on to the database, it works for me. If I log on using his log on info, it
doesn't work. Can anyone please tell me why and what I need to do to
correct this? Any help is appreciated.
Private Sub Command10_Click()
Dim strFolderAndFile As String
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9,
"qStatusDayCountAllJobs", "C:\DELTADB\AllJobs.xls"
Dim oApp As Object
Set oApp = CreateObject("Excel.Application")
oApp.Workbooks.Open "C:\deltadb\AllJobs.xls"
oApp.Visible = True
End Sub
Thanks in advance,
Pam