deer7777
asked on
MS Access 2007 Query - Change field format type from text to numbeer
Need to change the imported table's field type from text to number with a query. How can I do that?
ASKER
I am importing and Excel spreadsheet from my desktop but I need to change a field type from text to number. I want to do that with a query. I do not have the table linked. I will only be importing it into my database.
<I want to do that with a query.> what query ? pls explain
How are you importing the Excel file?
How are you importing the Excel file?
You can save this as a query in access
ALTER TABLE MyTable ALTER COLUMN Field1 Long;
ALTER TABLE MyTable ALTER COLUMN Field1 Long;
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open a new query in design view & change to SQL view.
Replace MyTable with the name of your Table & Field1 with the name of your field
Replace MyTable with the name of your Table & Field1 with the name of your field
ASKER
Perfect
A bit more info?
Import from where? Linked?
Gary