Jaylin,
I sure wish Microsoft would give us the ability to define an import
specification for Excel files, rather than letting Access decide for itself
what data type to use.
The way I generally work around this is to copy the column headers into the
second row of the Excel spreadsheet, ensuring that each one starts with a
letter. I then do the import into a new table in Access. Since all the
fields will be text data type, the import generally goes well. I then
delete that extra row that caused Access to think all the fields were text,
and check the data in each of the columns (a simple sort will generally help
you identify whether the field should be text, numeric, or date). I then
change the data type of the field accordingly and save the table. If the
table saves successfully, it is generally an indication that the new data
type is correct.
Along the way, I generally find some fields that contain both text and
numbers. When this happens, I generally leave the field as a text data type
and move to the next field.
When I have completed this process, I copy the temporary tables structure to
a new table, which is where the data will go when I am done importing and
transforming it. I then add columns that will allow me to transform mixed
numeric/alpha data into multiple columns. I then write some queries that
will move the data from the temporary import table to this final data table.
For example, my first step would be to append all of the fields that don't
require transformation into the new table. Then, I would link the new table
to the temp table on the PK field(s) (from the temp table) and then update
the data in those mixed data type fields based on the type of the data in
each record.
Once I have this working, I automate the process so that I can repeat it
over and over again. The key is that once you have the data structure
"right" for the temp table, use that as the table you do your initial import
into. Then perform the transformation steps to get the data into your final
table, then delete the data in the temp table.
HTH
Dale