Link to home
Start Free TrialLog in
Avatar of deer7777
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?
Avatar of tbsgadi
tbsgadi
Flag of Israel image

Hi deer7777,

A bit more info?
Import from where? Linked?

Gary
Avatar of deer7777
deer7777

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.
Avatar of Rey Obrero (Capricorn1)
<I want to do that with a query.> what query ? pls explain

How are you importing the Excel file?
You can save this as a query in access

ALTER TABLE MyTable ALTER COLUMN Field1 Long;

ASKER CERTIFIED SOLUTION
Avatar of Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
Perfect