Programmatically Change Column's Numeric Scale

J

JohnJohn

Hello.

Can someone show me the proper syntax to change the "Scale" property on a
column, preferably using ALTER COLUMN syntax?

Right now, the column is defined as Decimal with a precision of 8 and Scale
of 0. I want to change the Scale value to 4.

Thanks very much!
John
 
A

Allen Browne

Try:
CurrentProject.Connection.Execute "ALTER TABLE MyTable ALTER COLUMN
MyDecimal DECIMAL(8,4);"

You're a brave man trusting this data type in JET though.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top