Re: Import Excel S*** Columns as Text Only



Thanks Crystal,

Yes, I've never solved it. I think the other way around the issue might be
to write a macro or VBA snippet in Excel which would simply append an
apostrophe to each value in each excel cell.

Thanks
Mike Thomas


"strive4peace" <strive4peace2006@xxxxxxxxx> wrote in message
news:erqCH%231tGHA.4872@xxxxxxxxxxxxxxxxxxxxxxx
Hi Mike,

This is a frustrating problem! Even if you have an import specification
defined, Access seems to analyze the first 30 or so rows and determine the
data type from what it sees...

for this reason, I often make a "dummy" first row with text in every
column


Warm Regards,
Crystal
*
(: have an awesome day :)
*
MVP Access
Remote programming and Training
strive4peace2006 at yahoo.com
*



Mike Thomas wrote:
In Access 2003, we are importing Excel spreadsheets and are having a
problem with Access deciding that columns should be numbers rather than
strings. The spread*** is imported with the command

DoCmd.TransferSpread*** acImport, 0, "xImport", "d:\example.xls", True

I would like to find a way that Access would simply set each column of
xImport as a text column, then I can further process the data from there.

An example of the problem is an Excel column which has a number for the
first hundred rows, then an entry in the form of '03' where the zero is
significant. Do I need to make the table first, then read the Excel file
one row at a time, testing the type of each cell?

Many thanks
Mike Thomas


.