John Nurick <(E-Mail Removed)> wrote ...
> Access assigns field types...
No, this is a Jet process.
> ...on the basis of the data it finds in the
> first dozen or so rows of the spreadsheet table.
This is determined by a Jet registry key which, if set to zero, scans
all rows. For more details see:
http://www.dicks-blog.com/excel/2004...al_data_m.html
> It pays no attention to
> cell formats.
That is incorrect. As proof, create an Excel workbook containing a
single cell formula
=38000
Change the cell format to (custom) dd mmm yyyy. Include the column in
a query e.g.
SELECT F1
FROM [Excel 8.0;HDR=No;C:\Tempo\db.xls;].[Sheet1$]
;
The value appears as 14 JAN 2004 (in local format) and, using ADO's
OpenSchema method, the column is show to have been determined as
adDate ('a date value').
Jamie.
--