Importing Excel Worksheet into Access

netmog

New Member
Joined
Mar 14, 2002
Messages
6
Hello All,

I am trying to import an Excel worksheet into Access. I made some simple formattting changes to my orignal worksheet (sorting, titles, etc) to prepare for import. Now my "prepared for import" version won't import. Any ideas?

I can e-mail a mini-version of the file if you like. E-mail me at moghad@nature.berkeley.edu

Thanks!

Jason in California...
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
A couple of things about Excel files destined for Access.
1. The layout must be a table, with field headers in row 1
2. I find it works better if I name the Excel data as a range, then import or link to that range -- avoids spurious Field18, Field19... in your Access table
3. Names / headings should NOT have punctuation -- a no-no in Access
4. Try setting the data type of all the columns before linking / importing.
5. If you are importing into an existing table, ensure that the field names, field orders, and data types match exactly.

HTH
Denis
 
Upvote 0
As a suggestion for a quick fix.
Import the revised spreadsheet into Access and then compare the field formats in the new table to the old.

Or

Just use the new table - don't import it into an existing one.
-
There are some complex options.
Imports into Temporary Tables, and opening excel from Access and walking thru each cell, but that's sorta like using a sledgehammer to open a can of soda. Yeah it'll work, but it's overkill for some uses.

Mike
 
Upvote 0

Forum statistics

Threads
1,221,657
Messages
6,161,088
Members
451,684
Latest member
smllchng5

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top