SQL Action Query

  • Thread starter Thread starter wizcow2
  • Start date Start date
W

wizcow2

Guest
Can I change the type of field in a table with an action query?

Example:
The field 'cost' is a long integer number
and I want to change it to currency.

I tried this but it didn't work.

"ALTER TABLE InvoiceSub SET [cost] MONEY;"

Thanks
Tom

Access 9.0
Win 2k
 
Is that just an example? Because Currency is a format, not a data type...

I've nver used the Alter Table statement, but i think it can only add an delete columns?

The ALTER TABLE statement is used to add or drop columns in an existing table.

Code:
ALTER TABLE table_name 
ADD column_name datatype
ALTER TABLE table_name 
DROP COLUMN column_name
 
Last edited:
Not sure of the answer, since I don't modify tables in code (so far), but wanted to clarify that currency is a data type in A2k & A2k2.
 

Users who are viewing this thread

Back
Top Bottom