Link to home
Start Free TrialLog in
Avatar of JohnEddins
JohnEddins

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JohnEddins
JohnEddins

ASKER

I have been looking for something likt this for about 3 hours!! thanks
This does not work, it is showing Properties as a read only attribute...
You are good... any special search techniques you use to get this info...
Thanks again for the help
>>any special search techniques you use to get this info...

Google is your friend!

I have a lot of links in my favorites.