473,287 Members | 1,582 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,287 software developers and data experts.

TransferSpreadsheet Import Errors

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 the Excel file is a number formatted field, but
occasionally a cell in that column will not have a value.

When that happens, the code is not returning an error, but I end up
with a table of the Import Errors where that blank field value could
not be imported.

Does anyone know how to to get TransferSpreadsheet to allow these
blank cells and not give me the import error tables?
Sep 5 '08 #1
3 10903
ARC
Look at the design of the table that the spreadsheet is being imported into.
In the column in question, check the settings for "Required" and "Allow zero
length", as these may not be set properly.

Hope this helps,

"Icarus" <tj******@gmail.comwrote in message
news:58**********************************@34g2000h sh.googlegroups.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 the Excel file is a number formatted field, but
occasionally a cell in that column will not have a value.

When that happens, the code is not returning an error, but I end up
with a table of the Import Errors where that blank field value could
not be imported.

Does anyone know how to to get TransferSpreadsheet to allow these
blank cells and not give me the import error tables?
Sep 5 '08 #2
On Sep 5, 10:26*am, "ARC" <PCES...@PCESoft.invalidwrote:
Look at the design of the table that the spreadsheet is being imported into.
In the column in question, check the settings for "Required" and "Allow zero
length", as these may not be set properly.

Hope this helps,

"Icarus" <tjmos...@gmail.comwrote in message

news:58**********************************@34g2000h sh.googlegroups.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 the Excel file is a number formatted field, but
occasionally a cell in that column will not have a value.
When that happens, the code is not returning an error, but I end up
with a table of the Import Errors where that blank field value could
not be imported.
Does anyone know how to to get TransferSpreadsheet to allow these
blank cells and not give me the import error tables?- Hide quoted text -

- Show quoted text -
The TransferSpreadsheet is creating the table that it is importing
into. Can I change the field properties as part of
TransferSpreadsheet?
Sep 5 '08 #3
ARC
The 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
the table, where I can define table properties, such as the required
property:

DoCmd.TransferSpreadsheet acImport, 8, "ImportParts", strFileImport, true

So my temp table for holding the import already exists and is named
"ImportParts".

Hope this helps,

"Icarus" <tj******@gmail.comwrote in message
news:a8**********************************@8g2000hs e.googlegroups.com...
On Sep 5, 10:26 am, "ARC" <PCES...@PCESoft.invalidwrote:
Look at the design of the table that the spreadsheet is being imported
into.
In the column in question, check the settings for "Required" and "Allow
zero
length", as these may not be set properly.

Hope this helps,

"Icarus" <tjmos...@gmail.comwrote in message

news:58**********************************@34g2000h sh.googlegroups.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 the Excel file is a number formatted field, but
occasionally a cell in that column will not have a value.
When that happens, the code is not returning an error, but I end up
with a table of the Import Errors where that blank field value could
not be imported.
Does anyone know how to to get TransferSpreadsheet to allow these
blank cells and not give me the import error tables?- Hide quoted text -

- Show quoted text -
The TransferSpreadsheet is creating the table that it is importing
into. Can I change the field properties as part of
TransferSpreadsheet?

Sep 5 '08 #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...
6
by: sara | last post by:
I have a procedure to automate bringing several Excel files into our Access tables, on a daily basis. The problem is that if the user has a problem, and tries to run the import again (maybe 3...
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...
1
by: keri | last post by:
Hi, I'm automating an import done manually through Get External Data I have assigned the below code to the onclick event of a command button on a form but I am getting errors. ...
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...
4
by: ambmil | last post by:
I am using transfertext and transferspreadsheet in VBA to import an excel file (.csv or .xls) into access 2003. Some of the fields are failing (I am getting an import error file), but I am not...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...

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.