Advertisement

09.24.2007 at 08:01AM PDT, ID: 22848442
[x]
Attachment Details

Conflict Running Access 2000 OutputTo Action / Macro in Access 2007

Asked by DesignCityStudio in Access Coding/Macros, Microsoft Access Database, VB Controls

Tags: access, 2007, 2950, 2000, macro

Hello Experts,
I have developed an access database, along with all the vba code, using Access 2000. One of my users recently upgraded to Access 2007 and is now receiving error number 2950 when trying to execute a command button attached to a macro (OutputTo Action) that allows the user to export details to an Excel spreadsheet via an output file type of .xls. My guess is that Access 2007 chokes at the .xls reference given that Excel 2007 now saves files using the new default .xlsx [ugh]. I'm fairly new to database development in general and have no idea how to counter this issue.

The code for the command button used to export details from the customer form:
=========
Private Sub cmdExportCustomerDetails_Click()
On Error GoTo Err_cmdExportCustomerDetails_Click

    Dim stDocName As String

    stDocName = "macCustomerActivity"
    DoCmd.RunMacro stDocName

Exit_cmdExportCustomerDetails_Click:
    Exit Sub

Err_cmdExportCustomerDetails_Click:
    MsgBox Err.Description
    Resume Exit_cmdExportCustomerDetails_Click
   
End Sub
====================

The code for the macro itself:
====================
Action: OutputTo
Object Type: Query
Object Name: queryCustomerActivityReport
Output Format: Microsoft Excel (*.xls) -- Note: tried to change this but don't have that option in MSA-2000
Output File: left blank
Auto Start: Yes
Template File:  left blank
==============

Thank you in advance!
Regards, Katie
Start Free Trial
[+][-]09.24.2007 at 08:40AM PDT, ID: 19949176

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.24.2007 at 10:12AM PDT, ID: 19949855

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.24.2007 at 10:53AM PDT, ID: 19950182

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.24.2007 at 11:07AM PDT, ID: 19950301

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.24.2007 at 11:12AM PDT, ID: 19950333

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.24.2007 at 12:24PM PDT, ID: 19951002

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.24.2007 at 01:08PM PDT, ID: 19951354

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Access Coding/Macros, Microsoft Access Database, VB Controls
Tags: access, 2007, 2950, 2000, macro
Sign Up Now!
Solution Provided By: CunninghamC
Participating Experts: 1
Solution Grade: B
 
 
[+][-]09.24.2007 at 01:48PM PDT, ID: 19951669

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.24.2007 at 02:59PM PDT, ID: 19952093

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_1_20070628