drtopserv
asked on
alter more than one field at once access 2007
Hi,
how can i alter more than one field in access 2007
i need to change a fields in a table with number instead of text
example :
table1 , field1:TEXT filed2:TEXT
i need to alter table 1 changing field1 to NUMBER and field2 to NUMBER
how can i alter more than one field in access 2007
i need to change a fields in a table with number instead of text
example :
table1 , field1:TEXT filed2:TEXT
i need to alter table 1 changing field1 to NUMBER and field2 to NUMBER
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I didn't see anything in the Q that says this must be done in code - is that what you meant drtopserv?
To me, it just looked like case of opening the table in design view and doing the changes.
To me, it just looked like case of opening the table in design view and doing the changes.
ASKER
in data definition in the query ... should i write >? :
ALTER TABLE <TableName1> ALTER COLUMN <ColumnName1> <Datatype>
ALTER TABLE <TableName2> ALTER COLUMN <ColumnName2> <Datatype>
ALTER TABLE <TableName3> ALTER COLUMN <ColumnName3> <Datatype>
ALTER TABLE <TableName1> ALTER COLUMN <ColumnName1> <Datatype>
ALTER TABLE <TableName2> ALTER COLUMN <ColumnName2> <Datatype>
ALTER TABLE <TableName3> ALTER COLUMN <ColumnName3> <Datatype>
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
See if this helps....
http://www.ehow.com/how_13580_create-sql-query.html
Look at section....
Creating a Pass-Through Query and Creating a Data-Definition Query
http://www.ehow.com/how_13580_create-sql-query.html#ixzz1Eb76s3kR
See if that helps...
http://www.ehow.com/how_13580_create-sql-query.html
Look at section....
Creating a Pass-Through Query and Creating a Data-Definition Query
http://www.ehow.com/how_13580_create-sql-query.html#ixzz1Eb76s3kR
See if that helps...
What is stopping you changing the datatype?