|
-
Jul 17th, 2009, 11:08 PM
#1
Thread Starter
Addicted Member
add field to access db table
How can i add a field to a access db table. using ado and jet
-
Jul 18th, 2009, 12:24 AM
#2
Re: add field to access db table
You can execute an Alter Table statement. Following is the syntax supported by Jet/Access
ALTER TABLE table {ADD {COLUMN field type[(size)] [NOT NULL] [CONSTRAINT index] |
CONSTRAINT multifieldindex} |
DROP {COLUMN field I CONSTRAINT indexname} }
strSQL = "Alter Table Shippers Add Column Testing Text(10) Null Default 'Hello'"
-
Jul 18th, 2009, 01:39 AM
#3
Thread Starter
Addicted Member
Re: add field to access db table
 Originally Posted by brucevde
You can execute an Alter Table statement. Following is the syntax supported by Jet/Access
ALTER TABLE table {ADD {COLUMN field type[(size)] [NOT NULL] [CONSTRAINT index] |
CONSTRAINT multifieldindex} |
DROP {COLUMN field I CONSTRAINT indexname} }
strSQL = "Alter Table Shippers Add Column Testing Text(10) Null Default 'Hello'"
Thanks
new to databases, in what mode would i open the db ?
-
Jul 18th, 2009, 05:40 AM
#4
Re: add field to access db table
No special mode just open the connection and execute an SQL statement on a command object.
Sometimes the Programmer
Sometimes the DBA
Mazz1
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
|