Results 1 to 2 of 2

Thread: ADODB Append Field Data Type

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2005
    Posts
    8

    Exclamation ADODB Append Field Data Type

    Guys, may I know how can I append the attribute type (data type, eg. from Integer to Text) of Microsoft Access 2003 database using ADODB from Visual Basic 6?

    Thanks! Help is much appreciated!!

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: ADODB Append Field Data Type

    You aren't asking how to append, you are asking how to change the data type. Try something like
    VB Code:
    1. Dim sSQL As String
    2. sSQL = "ALTER TABLE tablename MODIFY (columnname TO columname VARCHAR(XX))" 'where XX is the size you want the field to be
    3. YourADOConnectionObjectName.Execute sSQL

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