Hi JA,
I assume there are no blank rows within the data in the problematic
worksheet. But here's something else that could account for it:
Excel has a concept of a UsedRange, basically a rectangular area in a
worksheet starting (usually) at A1 and including every cell that's ever
had data in it. When you import a table, Access by default imports the
entire UsedRange. But if data has been deleted from cells at the bottom
of the table on the worksheet, the UsedRange is not necessarily updated
- and in that situation Access will try to import the empty row(s).
To reset the UsedRange you need to delete the actual cells (or rows or
columns) that contain (or once contained) data. It's not enough to clear
them (delete the data they contain). Alternatively you can explicitly
adjust the UsedRange in Excel VBA.
But if this is the source of your empty records, it may mean that
there's a problem with the system that's creating the worksheets - which
case may affect the integrity of your data.
On Fri, 18 Aug 2006 09:01:51 -0700, jAdams
<jAdams@discussions.microsoft.com> wrote:
--
John Nurick [Microsoft Access MVP]
Please respond in the newgroup and not by email.
|