• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 537
  • Last Modified:

Create Autonumber Field in Access: VB.net

Hello all,
I am having a hard time figuring out how to create an autonumber field in Access with vb.net. I am using code to create a database and tables, and plan to load imported text files into these tabels. But I'm still stuck on trying to create the autonumber field. Below is sample code of how i am creating the fields in the tables:

        ADOXtable1.Name = "Points"
        Col.Name = "Field1"
        Col.Type = ADOX.DataTypeEnum.adDouble
        ADOXtable1.Columns.Append(Col)
        Col = New ADOX.Column()

Thanks,
John
0
JohnEddins
Asked:
JohnEddins
  • 3
  • 3
1 Solution
 
Éric MoreauSenior .Net ConsultantCommented:
0
 
JohnEddinsAuthor Commented:
I have been looking for something likt this for about 3 hours!! thanks
0
 
JohnEddinsAuthor Commented:
This does not work, it is showing Properties as a read only attribute...
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
Éric MoreauSenior .Net ConsultantCommented:
0
 
JohnEddinsAuthor Commented:
You are good... any special search techniques you use to get this info...
Thanks again for the help
0
 
Éric MoreauSenior .Net ConsultantCommented:
>>any special search techniques you use to get this info...

Google is your friend!

I have a lot of links in my favorites.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now