Importing to Access from Excel adds tons of blank records

G

Guest

I am importing a flat file / table of data from Excel 2003 into Access 2003.
The table is about 7,000 rows long and I double checked, all the rows below
the data are completely blank, no formatting no nothing.
When I import this table into Access, it imports all the data but creates a
total of 32,000 records with records 7001 throu 32,000 being blank??
 
D

david epsom dot com dot au

Yes, you can have blank rows in tables or spreadsheets.

If you don't want to import the blank rows, either
delete them from the spreadsheet, or specify a range
in your import specification.

(david)
 
J

John Nurick

Hi Jeff,

Probably this will fix it:

Select all the rows below your data and delete them (delete the actual
rows, don't just clear their contents). The total number of rows in the
worksheet won't change, but Excel will no longer think that the empty
rows contain data.
 
G

Guest

Hi Jeff,
Further to the previous answers to your problem, the easiest way would be to
"Name" the range in the spreadsheet - select/highlight all the relevant
cells, click in the "Name Box" directly above Column A (normally shows the
reference of the cell you are curerently in), type a relevant name and press
the enter key to finish the naming process. When importing the data from
within Access, on the first page of the Import Wizard choose the second
option to "Show Named Ranges" instead of "Show Worksheets" and continue
working through the Wizard - this will just bring in the correct amount of
data without any blank or empty rows.

Taffy B
 
G

Guest

Also, there is a registry setting that may affect this behaviour:

HKLM\microsoft\jet\4.0\engines\excel\appendblankrows

(david)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top