Thanks for the help. I got it working now, but of course, now I have
another question...
I have a column in the spreadsheet that has mostly numbers but has a
couple of text entries at the end. The Access Table that I'm
importing this data into is defined to have all text fields. When I
do the import function (TransferSpreadsheet), I get an error (Numeric
Field Overflow). Now, if I change the text entries to numbers (I
don't mean the formating - I mean the actual values), then it works
fine.
It seems like the import function assumes that the spreadsheet field
is a number field (maybe because that's what was in all the previous
rows) and when it gets to the text data, it messes up. Shouldn't it
use the table definition from Access to determine how to import the
data from the spreadsheet? Changing the format of the spreadsheet to
all text fields had no affect.
Any ideas as to why this is happening? Any suggestions as to how to
fix it?
Rich P <rp*****@aol.com> wrote in message news:<3f***********************@news.frii.net>...
Just suggesting one more alternative: you could link a table from the
external mdb to your current mdb and use TransferSpreadsheet to the
linked table. And something even a little more reliable than that would
be to Transferspreadsheet to a local table in the current mdb and use
Insert Into to fill the linked table.
Rich
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!