W wperzel New member Local time Today, 06:51 Joined Mar 12, 2002 Messages 8 Mar 13, 2002 #1 Can someone suggest the proper "Append" or "CreateField" statement to add an AutoNumber field to an existing table programatically in ADO? I have found an example for DAO but it does not work in an ADO environment. Warren
Can someone suggest the proper "Append" or "CreateField" statement to add an AutoNumber field to an existing table programatically in ADO? I have found an example for DAO but it does not work in an ADO environment. Warren
A Alexandre Registered User. Local time Today, 12:51 Joined Feb 22, 2001 Messages 794 Mar 13, 2002 #2 Create a data-definition query. You can execute it from VBA. Have a look to ALTER TABLE in Access help. Re-post if needed. Alex
Create a data-definition query. You can execute it from VBA. Have a look to ALTER TABLE in Access help. Re-post if needed. Alex