473,513 Members | 2,552 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 2348
ja********@gmail.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********@gmail.com wrote in
news:11**********************@i3g2000cwc.googlegro ups.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
4678
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...
2
4979
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...
7
3032
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...
2
3587
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....
5
3154
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...
2
1907
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...
3
6225
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...
0
7397
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7128
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...
0
7543
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...
0
5704
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...
1
5103
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3255
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
1612
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
1
817
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
473
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...

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.