datacontrol
Registered User.
- Local time
- Today, 20:16
- Joined
- Jul 16, 2003
- Messages
- 142
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
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
Last edited: