PC Review


Reply
Thread Tools Rate Thread

2003/2007 Access Conversion

 
 
Darryl
Guest
Posts: n/a
 
      14th Oct 2008
In doing some testing of a database conversion (2003 to 2007), one of my VB
codes exports a query to spreadsheet (docmd.transferspreadsheet acExport,
acSpreadsheetTypeExcel9, c:\filename.txt). When I run the code, the export
is not taking place. My suspicion is that since the code is trying to export
in 2000, but I'm running 2007, it's causing a conflict. Can anyone help me
resolve this?
 
Reply With Quote
 
 
 
 
Tom van Stiphout
Guest
Posts: n/a
 
      15th Oct 2008
On Tue, 14 Oct 2008 11:21:02 -0700, Darryl
<(E-Mail Removed)> wrote:

My suspicion is you got the arguments wrong, AND you got the file
extension wrong. This worked for me in A2007:
docmd.transferspreadsheet acExport, acSpreadsheetTypeExcel9,
"Customers", "c:\filename.xls"

-Tom.
Microsoft Access MVP


>In doing some testing of a database conversion (2003 to 2007), one of my VB
>codes exports a query to spreadsheet (docmd.transferspreadsheet acExport,
>acSpreadsheetTypeExcel9, c:\filename.txt). When I run the code, the export
>is not taking place. My suspicion is that since the code is trying to export
>in 2000, but I'm running 2007, it's causing a conflict. Can anyone help me
>resolve this?

 
Reply With Quote
 
Darryl
Guest
Posts: n/a
 
      15th Oct 2008
Sorry - that code line was from memory. the actual line is:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "Query",
"C:\Query Export.xls", True

Darryl

"Tom van Stiphout" wrote:

> On Tue, 14 Oct 2008 11:21:02 -0700, Darryl
> <(E-Mail Removed)> wrote:
>
> My suspicion is you got the arguments wrong, AND you got the file
> extension wrong. This worked for me in A2007:
> docmd.transferspreadsheet acExport, acSpreadsheetTypeExcel9,
> "Customers", "c:\filename.xls"
>
> -Tom.
> Microsoft Access MVP
>
>
> >In doing some testing of a database conversion (2003 to 2007), one of my VB
> >codes exports a query to spreadsheet (docmd.transferspreadsheet acExport,
> >acSpreadsheetTypeExcel9, c:\filename.txt). When I run the code, the export
> >is not taking place. My suspicion is that since the code is trying to export
> >in 2000, but I'm running 2007, it's causing a conflict. Can anyone help me
> >resolve this?

>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conversion Problem Access 2002/2003 to 2007 Vic Microsoft Access Form Coding 6 1st Sep 2009 02:09 PM
How do I automate the conversion of Access 2007 to 2003 Tracy Microsoft Access VBA Modules 2 13th May 2009 04:06 AM
How do I automate the conversion of Access 2007 to 2003 Tracy Microsoft Access VBA Modules 0 11th May 2009 05:09 PM
Error 3033 / Conversion from Access 2003 to Access 2007 Roxana Microsoft Access Security 0 26th Nov 2007 05:55 PM
Access 2003 Conversion to 2007 rwboyden via AccessMonster.com Microsoft Access VBA Modules 1 17th Jul 2007 07:08 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:33 PM.