473,836 Members | 1,514 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Importing from Excel - Cannot maintain Cell type

Hi,

I am having trouble importing a spreadsheet from Excel into an Access
Database.

I have noticed that even specifying the Cell Type of the Excel Data
Cell, When I import it, still get Import Errors. Like Type Mismatch.

The funny thing is that its all done automatically via the Wizard, so I
dont even specify what the field type should be in my database, but it
seems to for eg. select "Number" as the type, but then later down, it
finds some text, then therefore causes the error.

Any ideas?

Thanks in advance

Sep 4 '06 #1
2 2365
ja********@gmai l.com wrote:
Hi,

I am having trouble importing a spreadsheet from Excel into an Access
Database.

I have noticed that even specifying the Cell Type of the Excel Data
Cell, When I import it, still get Import Errors. Like Type Mismatch.

The funny thing is that its all done automatically via the Wizard, so I
dont even specify what the field type should be in my database, but it
seems to for eg. select "Number" as the type, but then later down, it
finds some text, then therefore causes the error.

Any ideas?

Thanks in advance
IIRC the import wizard looks at the first few rows to make a guess about
the data type for that column. I don't think it pays attention to
formats you establish in Excel.

The import wizard gives you the opportunity to change the assumed data
types.

--
Smartin
Sep 5 '06 #2
ja********@gmai l.com wrote in
news:11******** **************@ i3g2000cwc.goog legroups.com:
i,

I am having trouble importing a spreadsheet from Excel into an Access
Database.

I have noticed that even specifying the Cell Type of the Excel Data
Cell, When I import it, still get Import Errors. Like Type Mismatch.

The funny thing is that its all done automatically via the Wizard, so I
dont even specify what the field type should be in my database, but it
seems to for eg. select "Number" as the type, but then later down, it
finds some text, then therefore causes the error.

Any ideas?

Thanks in advance
For what it's worth, Jason, I'm currently converting a few very messy
spreadsheets into Access97. Many columns have numbers in the first few
hundred rows (e.g. 1001, 1002, 1003) followed by a mixture (e.g. 1001A,
1002D, 1003Q). Like you, I find my Access gets miffed and says, "If you're
going to try to trick me, I just won't do anything."

I lowered my stress level by increasing the tedium level and going back to
old-fashioned methods. The steps were:

1. From Excel, Save As Text.
2. From Access, Import, changing all Fields (Numbers, Dates ... ALL) to
Text.
3. After Import, change Field Types to something more logical.

Usually a change in Table Design was immediately accepted on Saving.
If I had an error, I'd check manually. Usually an expression in a Query
would help - for example Expr1: CDbl([MyNumberField]). If the Query opened
a Datasheet, I'd sort that column both ascending and descending, glancing
over the side by side columns, comparing. This technique catches a
surprising number of oddities in an amateur spreadsheet. If I saw #error#.
I could see the Text and work out what was required.

Slow, boring, tedious; yes,

The advantage - It helped me gain a feel for the data which was of great
help at Table design time.

As I said - for what it's worth.

Cheers,
Alan Carpenter


Sep 5 '06 #3

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

Similar topics

4
4706
by: Little PussyCat | last post by:
Hello, I nee to write something that will transfer excel data into an SQL Server table. I have for another database application I wrote have it importing Excel spreadsheet data using cell by cell, row by row method. This is fully automated so the user can choose whatever spreadsheet they want to import and press a button which sits on a VB6 frontend. This has been good for that situsation but it can be very slow when there
2
4993
by: Mr. Bungle | last post by:
When importing excel from access I am fully aware that one can import directly into a table. Can you get as specific via code or something to import data from an excel sheet to a FORM (Not Table) through a command button. For example: cell C5 on the selected excel spread sheet = textbox2 in the current form. This is for a service repair type database. The service technicians work out in the field and currently create their service orders...
7
3068
by: Darren | last post by:
I have been attempting to create a reservation planning form in excel that imports Data from an Access database and inserts that information automaticly into the correct spreed sheet and the correct cells within that worksheet. The Excel Book is made up of 12 worksheets named Jan-Dec. Each worksheet has columns labeled as each day of that month. Column 'A' is reserved for 19 rows named "room1 - room19". The data I am importing from the...
2
3617
by: nutthatch | last post by:
I want to be able to import an Excel spreadsheet into Access 2K using the macro command Transferspreadsheet. However, the file I am importing (over which I have no control) contains some records that are "dirty" i.e. the field contents do not comply with the expected format (date/time) and they end up in a seperate table of import errors. (The records in "error" are actually empty fields.) This is a regular event and I do not want to...
5
3188
by: hharriel | last post by:
Hi, I am hoping someone can help me with an issue I am having with excel and ms access. I have collected data (which are in individual excel files) from 49 different school districts. All districts have used the same excel template and populated the same 32 data fields (columns). I created one large excel file from all 49 files which gives me a master table of 60,000 or so records. I have tried to import this master table into access...
2
1924
by: ScardyBob | last post by:
Hello, I am having trouble importing data from an Excel Worksheet. When I try to import the data, everything works except certain columns that contain dates, where it replaces the date with a null in the access table. To import the data I do the following. 1. Create a table based on the excel spreadsheet setup with the following query sSQL = "INSERT INTO " & TblName & " SELECT * " _
3
6253
by: sejal17 | last post by:
hello Can any one tell me how to read multiple worksheets from a single excel file.I have stored that excel in xml file.so i want to read that xml that has multiple worksheet.And i want to store that multiple worksheet data in different table.How can i do it.Below is my xml file. <?xml version="1.0"?> <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:o="urn:schemas-microsoft-com:office:office" ...
0
9671
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10558
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10600
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10257
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9387
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6981
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5829
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4459
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3116
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.