Board index » delphi » MS Access ALTER TABLE problem - urgent!

MS Access ALTER TABLE problem - urgent!

Hello!

Could someone, please, tell me how can I execute this as MS Access 2K query:
    ALTER TABLE [TableName] ALTER COLUMN [FieldName] DOUBLE (15,2)

Table and field exist and I want to change from Number (Double) type with
Auto precision to Number (Double) with 2 decimal places precision.
MS Access reports syntax error at first bracket, while this works perfectly
on SQL Server 7/2K!

I could not find anything about this in MS Access help :-(

Thank you in advance!

--
{[n!k!ca]c0d!ng*4[$||:)]}

 

Re:MS Access ALTER TABLE problem - urgent!


The DecimalPlaces is a property and not setable through SQL.
You could modify it in code using the TableDef and Field objects.

DecimalPlaces, however, does not determine how numbers are stored
but how they are displayed. Do you really need to change this?

The DecimalPlaces property setting has no effect if the Format
property is blank or set to General Number (from A2K help).

--
'-------------------------------
' John Mishefske
'-------------------------------

Quote
Nikica Tarandek wrote:

> Hello!

> Could someone, please, tell me how can I execute this as MS Access 2K query:
>     ALTER TABLE [TableName] ALTER COLUMN [FieldName] DOUBLE (15,2)

> Table and field exist and I want to change from Number (Double) type with
> Auto precision to Number (Double) with 2 decimal places precision.
> MS Access reports syntax error at first bracket, while this works perfectly
> on SQL Server 7/2K!

> I could not find anything about this in MS Access help :-(

> Thank you in advance!

> --
> {[n!k!ca]c0d!ng*4[$||:)]}

Re:MS Access ALTER TABLE problem - urgent!


Quote
"Nikica Tarandek" <nikica.taran...@ck.tel.hr> wrote in message <news:9ur4fs$8dla$1@as201.hinet.hr>...
> Hello!

> Could someone, please, tell me how can I execute this as MS Access 2K query:
>     ALTER TABLE [TableName] ALTER COLUMN [FieldName] DOUBLE (15,2)

> Table and field exist and I want to change from Number (Double) type with
> Auto precision to Number (Double) with 2 decimal places precision.
> MS Access reports syntax error at first bracket, while this works perfectly
> on SQL Server 7/2K!

Try to skip brackets

Other Threads