Anita - Here's the LONG discussion I had with Joe Fallon,
one of the many knowledgeable people in these Newsgroups.
Hope it helps...
Joe - Thank you for answering. I always enjoy reading
your insight.
I made an Excel csv (just separates the column values by
columns). None of the "traditional delimited double-quote
around text, & no double-quotes around numbers".
Ran the code "Open a txt" file. The Dates read the first
character - IE - "4/16/03" was Input as "4" & converted
to "1/3/1900" in the Access table.
So...forced to format the Dates in Excel as numbers, then
Input txt & convert to Dates.
Years ago, Lotus 1-2-3 would produce a nice delimited csv
file with "proper double-quotes".
I did a Project in Syracuse almost 4 years ago where I
asked the Boston Corporate Ofc to give me a "True csv
double-quotes - delimited file" (which they did). Such
files could even be made from the DOS prompt.
Today...what is the best way to produce a Delimited csv
double-quote file from Excel data?
The fact is there are probably millions of small companies
that use Excel as their their "mainframe" database. I
have seen small companies resist using Access over Excel
for databases.
Bob
-----Original Message-----
I prefer any database format over Excel.
I also prefer ASCII delimited over Excel.
(I like semi-colon, | or ~ delimiters.)
Excel is NOT a database and so you have to live with all
of its eccentricities when using it with Access. The first
8-16 rows of data are critical. (It varies depending on
versions, registry setting and programming languages.) I
would inspect the Excel file and ensure that the first
data row had a representative pice of data in it that
would force the Guess to be correct.
This is especially true for Access Text fields and Memo fields.
Be sure that a piece of Text data and Memo (over 255
char) data appear in row 1 of Excel.Excel is a mix of Number & text. IE, "456" will be
interpreted as a Double in the DBF, but many rows further
down, there is a "B123" - & that is not brought into the
DBF, so I lose that value.(either csv or fixed-length) is solid working with code.
But, I have had difficulty getting reliable ASCII files
from Excel.