|
|
TransferSpreadsheet Errors
In my code, I'm using TransferSpreadsheet and all is working fine. However,
should the spreadsheet contain an error, a table is created within my Acc2007
database containing any errors that ocurred. Although this is nice to have,
I'm worried that I'll end up with countless error tables after awhile.
Is there a switch I can use or a parameter I can set to prevent this table
from being created? (The data is useless.)
I guess I can also look for an error-table after the TransferSpreadsheet
executes and delete it (although the error-table name changes based upon the
worksheet name which migh make it difficult to do so.)
|
|
0
|
|
|
|
Reply
|
Utf
|
1/15/2010 1:08:02 PM |
|
On Fri, 15 Jan 2010 05:08:02 -0800, kenrav
<kenrav@discussions.microsoft.com> wrote:
That table is not useless. You could use it to understand where the
errors are, and perhaps even fix the Excel records before import.
There is no way to turn this off. Indeed you can delete after the
fact. The beginning of that table name is constant, so you can find
them that way:
dim td as dao.tabledef
for each td in currentdb.tabledefs
if left$(td.name, len("first-part-of-name") = "first-part-of-name"
then currentdb.tabledefs.delete td.name
next
(Of course you replace "first-part-of-name" with the constant part of
the error table name)
-Tom.
Microsoft Access MVP
>In my code, I'm using TransferSpreadsheet and all is working fine. However,
>should the spreadsheet contain an error, a table is created within my Acc2007
>database containing any errors that ocurred. Although this is nice to have,
>I'm worried that I'll end up with countless error tables after awhile.
>
>Is there a switch I can use or a parameter I can set to prevent this table
>from being created? (The data is useless.)
>
>I guess I can also look for an error-table after the TransferSpreadsheet
>executes and delete it (although the error-table name changes based upon the
>worksheet name which migh make it difficult to do so.)
|
|
0
|
|
|
|
Reply
|
Tom
|
1/15/2010 1:46:51 PM
|
|
|
1 Replies
384 Views
(page loaded in 0.117 seconds)
Similiar Articles: TransferSpreadsheet Error, Access 2003 to Excel 2007. - microsoft ...I had this problem & it appears to be a glitch. I have macros that execute TransferSpreadsheet and/or SendObject. You just have to go into the Action part and re-set ... TransferSpreadsheet Access 2003 to Excel 2007 Error - microsoft ...I've had Excel 2007 installed and still run Access 2003 on my PC. The following code ran fine when Excel 2003 was on my PC, but since using 2007 it ge... TransferSpreadsheet Issue - microsoft.public.access.formscoding ...Problem with TransferSpreadsheet in Access 2007 - microsoft.public ... TransferSpreadsheet Error, Access 2003 to Excel 2007. - microsoft ... Here's the problem, though. Format Excel Sheet after DoCmd.TransferSpreadsheet - microsoft ...Sometimes this runs ok and other times I get odd errors... ===== 'Run the selected query out to excel... DoCmd.TransferSpreadsheet acExport ... Problem with TransferSpreadsheet in Access 2007 - microsoft.public ...Problem with TransferSpreadsheet in Access 2007 - microsoft.public ... TransferSpreadsheet Error, Access 2003 to Excel 2007. - microsoft ... Here's the problem, though. Using TransferSpreadsheet Macro to import a single sheet from exce ...TransferSpreadsheet Error, Access 2003 to Excel 2007. - microsoft ... Using TransferSpreadsheet Macro to import a single sheet from exce ..... to use the ... TransferSpreadsheet Excel 2007 into Access 2003 - microsoft.public ...TransferSpreadsheet action - microsoft.public.access TransferSpreadsheet action - microsoft.public.access TransferSpreadsheet Error, Access 2003 to Excel 2007 ... TransferSpreadsheet action - microsoft.public.accessTransferSpreadsheet action - microsoft.public.access TransferSpreadsheet Error, Access 2003 to Excel 2007. - microsoft ... I had this problem & it appears to be a glitch. filedialog filepicker and folderpicker - microsoft.public.access ...... used for the user to enter a new file name? This will be used with the transferspreadsheet ... name of a non-existent folder, of course I get the file not found >>> error ... Import Two Excel file into a table of Access 2000 - microsoft ...Secondly, with transferspreadsheet, I like to test it using a macro if I get errors. Then once I get the macro working, I can copy the information for the macro into VBA ... TransferSpreadsheet Import Errors - Database Support @ dbaspot.com ...I'm using TransferSpreadsheet to import an Excel file in to MS Access 2003. DoCmd.TransferSpreadsheet acImport, 8, strTable, strFileName, True, One of the columns in ... Excel - Using Transferspreadsheet Gives Runtime Error 3027 - I am ...IS Functions - IS Functions. See how to use the following functions: ISBLANK functionValue refers to an empty cell. ISERR functionValue refers to any ... Transferspreadsheet error trapping DataBaseSorry if this is somwhere else in here but a day of searching in every combination of keyword I could think of got me nothing. I am using excel 2003 and Transferspreadsheet Import Error? | MS Access[Archive] TransferSpreadsheet Import error? Macros ... Hey all, I'm using the TransferSpreadsheet action to import data from a .xls to "tbl_master" in Access. TransferSpreadsheet Import ErrorsThe way I have mine set up is that I have a table that I specify in the transferspreadsheet statement. I match up the column headinigs of the xls to 7/16/2012 4:07:23 PM
|
|
|
|
|
|
|
|
|