Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing Field properties with ADO

Status
Not open for further replies.

venom3249

Programmer
Jul 18, 2001
43
0
0
US
How do I change the field properties of an access database using ADO. I've got a procedure that creates the table and and all the fields but I want one of the fields to autoincrement. How would I go about setting that? Thanks.
 
this should at least give you an idea this is to create a field:

table.Fields.Append table.CreateField("fieldname", dbInteger) ----------------
Joe
 
Thanks for the reply Joe but I got the fields created already. I'm looking for a way to change the field's property.
 
In Access you can't change a field to Autonumber after the field has been created. The nearest that you will get is to add anew field and set its Datatype to Autoincrement Let me know if this helps
________________________________________________________________
If you are worried about how to post, please check out FAQ222-2244 first

'There are 10 kinds of people in the world: those who understand binary, and those who don't.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top