Board index » delphi » ALTER TABLE/ALTER COLUMN problem with MS Access 2K
[codetroll]
![]() Delphi Developer |
Tue, 25 May 2004 14:53:27 GMT
|
[codetroll]
![]() Delphi Developer |
Tue, 25 May 2004 14:53:27 GMT
ALTER TABLE/ALTER COLUMN problem with MS Access 2K
Could someone, please, tell me why this SQL command will not run in MS
Access 2000: ALTER TABLE [TableName] ALTER COLUMN [FieldName] DOUBLE (15,2) Table and field exist and I want to change field type from Thank you in advance! -- |
Henry Crave
![]() Delphi Developer |
Tue, 25 May 2004 16:11:47 GMT
Re:ALTER TABLE/ALTER COLUMN problem with MS Access 2KAFAIK you cannot define the Precision of an Access/Jet Number Field. -- Quote"[codetroll]" <nos...@please.org> wrote in message Quote> Could someone, please, tell me why this SQL command will not run in MS |
[codetroll
![]() Delphi Developer |
Tue, 25 May 2004 16:19:14 GMT
Re:ALTER TABLE/ALTER COLUMN problem with MS Access 2KIt's possible in Design mode by setting "Decimal places" to a value (different from Auto). It's logical that this would be possible through SQL command too then ... at least to me. Quote"Henry Craven" <GospodynNiema...@nyet.net> wrote in message Quote> AFAIK you cannot define the Precision of an Access/Jet Number Field. |
Henry Crave
![]() Delphi Developer |
Tue, 25 May 2004 16:34:59 GMT
Re:ALTER TABLE/ALTER COLUMN problem with MS Access 2KI think you'll find that that refers to the Display/Formatting, and not the stored value. Hmm ...Checks Help: Bingo. Quote"[codetroll]" <nos...@please.org> wrote in message Quote> It's possible in Design mode by setting "Decimal places" to a value |
[codetroll
![]() Delphi Developer |
Tue, 25 May 2004 16:58:50 GMT
Re:ALTER TABLE/ALTER COLUMN problem with MS Access 2KHm... you're right! Then I just have to find another solution. Thanks anyway. Quote"Henry Craven" <GospodynNiema...@nyet.net> wrote in message Quote> I think you'll find that that refers to the Display/Formatting, |
Danny J. Lesandrin
![]() Delphi Developer |
Tue, 25 May 2004 21:29:41 GMT
Re:ALTER TABLE/ALTER COLUMN problem with MS Access 2KI was just reading the latest Developer's Handbook last night and I ran across a comment about using the ALTER statement. It said that you cannot change an existing column ... at least not the datatype. You can add and drop columns, but not change existing. It's been a while since I worked with Oracle, but it seems to me that the Danny J. Lesandrini "[codetroll]" <nos...@please.org> wrote ... Quote> Could someone, please, tell me why this SQL command will not run in MS |
[codetroll
![]() Delphi Developer |
Tue, 25 May 2004 21:52:08 GMT
Re:ALTER TABLE/ALTER COLUMN problem with MS Access 2KWell ... this is probably not 100% correct. I had the field as Number (LongInt) and I changed it to Double with this command. Didn't try changing from Text to Double - that will probably fail. -- "Danny J. Lesandrini" <dlesandr...@hotmail.com> wrote in message Quote> I was just reading the latest Developer's Handbook last night and I ran |
Danny J. Lesandrin
![]() Delphi Developer |
Tue, 25 May 2004 22:49:47 GMT
Re:ALTER TABLE/ALTER COLUMN problem with MS Access 2KJust reporting what I read, and that for Access XP. I went back to check it just now, and sure enough, Getz & Company says ... With [ALTER TABLE] you can add a new column or constraing or delete a Looking at it again, they didn't comment on ALTER COLUMN, but my tests alter table table1 alter column Client_ID text The Client_ID changes from Long Integer, to Text, to Double, to Date Danny J. Lesandrini "[codetroll]" <nos...@please.org> wrote ... Quote> Well ... this is probably not 100% correct. |
David W. Fent
![]() Delphi Developer |
Thu, 27 May 2004 04:47:43 GMT
Re:ALTER TABLE/ALTER COLUMN problem with MS Access 2Knos...@please.org ([codetroll]) wrote in <9uptue$63m...@as201.hinet.hr>: Quote>It's possible in Design mode by setting "Decimal places" to a Access. The SQL works only on Jet structures, and the decimal places property is one that is added to the table by Access. That is, Jet doesn't know about this "custom" property. To manipulate it, you must use DAO instead, and get to it through the .Properties collection of the relevant .TableDef. -- |
1. MS Access ALTER TABLE problem - urgent!
2. IB6.0 Bug? ALTER TABLE ALTER Fieldname
3. Alter MS Access Table with ADO
4. Alter Table statement and MS-Access from Code ...
5. Lock Access table prior to ALTER TABLE
6. alter table identity column
7. ALTER TABLE makes VARCHAR column too long
8. ADO, Access 2000, ALTER TABLE