| Chat with a LIVE Microsoft
Access Expert! |
||||
|
||||
|
#1
|
|||
|
|||
|
3011 - run time error
I get the following error when attempting to export a report to excel via vba:
The Microsoft Jet Database engine could not find the object 'over view report'. Make sure it exists and that you spell its name and the path name correctly. This is really driving me nuts. Below is my command button code: Private Sub ReadDoc1_Click() Dim FileName As Variant Dim Response As Integer Dim Home As String ' ' Check Dialog Box values ' If (Nz(Me.FileName, "x") = "x") Then Response = MsgBox("You must specify an input file.") Exit Sub End If DoCmd.OutputTo acExport, Forms!SB!Combo185, acFormatXLS, Me.FileName, True MsgBox "The '" & Forms!SB!Combo185 & "' has been exported.", vbOKOnly DoCmd.Close acForm, "ReadSubsystemDocument5" End Sub
__________________
living a life of confusion Last edited by datacontrol; 02-20-2004 at 06:24 AM.. |
| Sponsored Links |
|
#2
|
||||
|
||||
|
Are you sure you have the proper DoCmd.OuputTo syntax?
|
|
#3
|
|||
|
|||
|
Quote:
__________________
living a life of confusion |
|
#4
|
||||
|
||||
|
According to my Access help system, these are your options for the first parameter of the OutputTo method:
Code:
acOutputForm acOutputModule acOutputQuery acOutputReport acOutputTable |
|
#5
|
|||
|
|||
|
Quote:
Thanks a million, this works.
__________________
living a life of confusion |
| Sponsored Links |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|