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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

change property to currency

Status
Not open for further replies.

samotek

Technical User
May 9, 2005
197
BG

How can i change the property of a text to a currency ?
I am changing the property to number with the following line :
db.Execute "ALTER TABLE MyTable ALTER COLUMN F1 INTEGER", dbFailOnError

But i cannot change it to currency.The folloiwng line gives me an error:


db.Execute "ALTER TABLE MyTable ALTER COLUMN F2 dbcurrency", dbFailOnError









 
I think its
Code:
db.Execute "ALTER TABLE MyTable ALTER COLUMN F2 [COLOR=blue]Currency[/color]", dbFailOnError
"dbCurrency" is a VB environmental variable ... not the name of an Access DataType.
 
Another way:
db.Execute "ALTER TABLE MyTable ALTER COLUMN F2 MONEY", dbFailOnError

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top