Results 1 to 2 of 2

Thread: add a field to existing table using ADO

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 1999
    Posts
    39
    Hi
    I would like to know: how would you add a new field to an existing table in sql database?
    With DAO you would use the database object, tabledef object and the field object but how do you do this when using ADO ref and control?

    Any help is much appreciated.



    sm

  2. #2
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367

    Use the ALTER TABLE SQL call

    You should use the ALTER TABLE sql command. The syntax is as follows

    Code:
    "ALTER TABLE tblName ADD COLUMN colName TYPE"
    The TYPE will be Currency, Date, etc...


    Hope this helps

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width