473,382 Members | 1,425 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

TransferSpreadsheet seems to corrupt spreadsheet

I'm using TransferSpreadsheet to transfer data from A2K to an Excel
spreadsheet that has some pivot tables in it. It seems like it is working,
but when I open the spreadsheet, it gets an error (always asks if I want to
send a message to Microsoft). I can't figure out how to get the data into
the spreadsheet. Anyone run into this or have a suggestion?

Nov 13 '05 #1
3 2405
I've not been able to get around this problem using TransferSpreadsheet. I
cobbled around it by pushing the data over one cell at a time. It works but
is very slow relative to TransferSpreadsheet. Anyone have a suggestion how
I might speed up the process?
"Randy Harris" <ra***@SpamFree.com> wrote in message
news:oA**********************@newssvr28.news.prodi gy.com...
I'm using TransferSpreadsheet to transfer data from A2K to an Excel
spreadsheet that has some pivot tables in it. It seems like it is working, but when I open the spreadsheet, it gets an error (always asks if I want to send a message to Microsoft). I can't figure out how to get the data into
the spreadsheet. Anyone run into this or have a suggestion?

Nov 13 '05 #2
A quick check at AccessWeb turned up this:
http://www.mvps.org/access/bugs/bugs0024.htm

TransferDatabase Causes Page Fault If Object Exists

You may experience a GPF when trying to export an object to another
database by using TransferDatabase method. This page fault occurs if
the destination object (any valid Access object type) already exists.

The only solution at present is to use Automation to start a new
Access instance and delete the destination object before issuing the
TransferDatabase command.

Or try this method:
http://www.mvps.org/access/modules/mdl0035.htm
Nov 13 '05 #3
"Pieter Linden" <pi********@hotmail.com> wrote in message
news:bf**************************@posting.google.c om...
A quick check at AccessWeb turned up this:
http://www.mvps.org/access/bugs/bugs0024.htm

TransferDatabase Causes Page Fault If Object Exists

You may experience a GPF when trying to export an object to another
database by using TransferDatabase method. This page fault occurs if
the destination object (any valid Access object type) already exists.

The only solution at present is to use Automation to start a new
Access instance and delete the destination object before issuing the
TransferDatabase command.

Or try this method:
http://www.mvps.org/access/modules/mdl0035.htm


Pieter, I feel I owe you a beer! Your suggestion was tremendously helpful.
I still can't use TransferSpreadsheet, however, the AccessWeb example code
used the CopyFromRecordset method, which helped. The time to transfer the
data into the spreadsheet was reduced by more than half! Thank you.

Randy Harris
Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: O'Donnell Tribunal | last post by:
Hello Everybody, I am using the TransferSpreadsheet method to import spreadsheets for processing. say my code looks like this: DoCmd.TransferSpreadsheet acImport, 0, _ "tbltempImport1", ""...
0
by: Mick Hardy | last post by:
Hi, Has anyone seen this weird behaviour or have any suggestions or can anyone reproduce it? The history: I converted a large third party DB from 97 to XP and it uses the...
1
by: Bob Hynes | last post by:
Hi All, In Access97 I'm using a TransferSpreadsheet acExport in vba code and it errors when the spreadsheet I'm exporting does not exist. If I create a empty spreadsheet with the name I use in the...
1
by: barma16 | last post by:
I've hit a bit of a brick wall here, and could use some advice. I have an Access application whose output is a four-tab Excel spreadsheet where three of the four tabs are the result of database...
3
by: user_5701 | last post by:
Hello, I'm getting an error with a Docmd.Transferspreadsheet line of code: DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel2000, "tblTest", pathAndFilename, True The above line...
2
by: Anne Sachleben via AccessMonster.com | last post by:
I am using the TransferSpreadsheet function to export a query result to a specific worksheet in an Excel file titled "report". I want the result to be exported to the worksheet titled "facts". ...
4
by: Tom Louchbaum | last post by:
I try to use this command to import a spreadsheet "DoCmd.TransferSpreadsheet acImport, 8, tablename & " -tbl", DIR & "Book2.xls", True" and it errors out. If I try to import that same...
0
by: Jer | last post by:
I am using TransferSpreadsheet from an ADP file to import an Excel spreadsheet into an MSDE database. On one computer, when I run the code to import the spreadsheet, it prompts for an SQLServer...
5
by: D.Stone | last post by:
I'm getting a problem with importing an Excel spreadsheet into a table in a SQL Server 2000 back-end. I'm doing this in VBA in an onClick event proc in an Access 2003 project. The target table's...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.