Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Modifying Table Property with SQL 1

Status
Not open for further replies.

EddyLLC

Technical User
Mar 15, 2005
304
US
I am trying to change the Decimal places of a table field from 2 to 4 using the following code only to receive a syntax error. Can anybody tell what I have done wrong? Thanks
Eddy


strSQL = "ALTER TABLE tbl2 ALTER COLUMN Factor DecimalPlaces(4)"
 
DecimalPlaces" is a field property but the "ALTER" statement is expecting a data type. If you are using DAO then you need
Code:
db.TableDefs("tbl2").Fields("Factor").Properties("DecimalPlaces").Value = 4
 
Man your good! Thanks for curing my headache
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top