|
-
Sep 9th, 2002, 11:38 AM
#1
Thread Starter
Hyperactive Member
ALTER TABLE statement
Hi,
I have a database with a table (Sent) which contains a field (among others) called sntSubject. It is a text field of length 50.
I am trying to use an ALTER TABLE statement to set the length to 255 through VB referencing MS DAO3.6.
I create a database object, and use the DB.Execute method but I always get a Syntax error in my ALTER TABLE statements. Here is what I have tried:
ALTER TABLE Sent MODIFY sntSubject TEXT(255);
or
ALTER TABLE Sent MODIFY sntSubject CHAR(255);
but no luck. What would I need to do to make this work?
Thanks
And I, for one, welcome our new insect overlords. I'd like to remind them as a trusted TV personality, I can be helpful in rounding up others to toil in their underground sugar caves.
-
Sep 9th, 2002, 12:08 PM
#2
Fanatic Member
try
ALTER TABLE Sent ALTER COLUMN sntSubject Text(255)
VB 6.0, Access, Sql server, Asp
-
Sep 9th, 2002, 12:15 PM
#3
Thread Starter
Hyperactive Member
And I, for one, welcome our new insect overlords. I'd like to remind them as a trusted TV personality, I can be helpful in rounding up others to toil in their underground sugar caves.
-
Sep 30th, 2002, 01:32 PM
#4
Hyperactive Member
I'm getting a syntax error in this alter statement but I don't know what it is...
VB Code:
ALTER TABLE tblratesfromfeecard ALTER COLUMN [Capital Receipts Rate] text(255)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|