Hello,
I want to verify and change an sql recordset column's data type at run time. For example, if rsTable.Fields(colName) = "Account" and dataType = varchar(10) then datatype = varchar(20).
I don't know what the syntax is for verifying the data type but I believe I would need something similar to the following to change it:
Could someone please provide me with the proper syntax to verify and change the data type.
Thanks.
If at first you don't succeed, then sky diving wasn't meant for you!
I want to verify and change an sql recordset column's data type at run time. For example, if rsTable.Fields(colName) = "Account" and dataType = varchar(10) then datatype = varchar(20).
I don't know what the syntax is for verifying the data type but I believe I would need something similar to the following to change it:
Code:
conn.Execute "ALTER TABLE TableName ALTER COLUMN ACCOUNT varchar(20)
Could someone please provide me with the proper syntax to verify and change the data type.
Thanks.
If at first you don't succeed, then sky diving wasn't meant for you!