shrndegruv
Registered User.
- Local time
- Today, 15:28
- Joined
- Sep 8, 2004
- Messages
- 58
Hi all
In my VB code I need to create a row in a table that has an autonumber field as the primary key.
How does one specify that in SQL.
I have the following as my sql -- I dont know what should go in the [autonumber] spot
when I dont specify to insert ID, I get a key violation error.
thanx
In my VB code I need to create a row in a table that has an autonumber field as the primary key.
How does one specify that in SQL.
I have the following as my sql -- I dont know what should go in the [autonumber] spot
Code:
"INSERT INTO [WindowCondition](ID, RoomID, UnitNumber, RoomType)" _
& "VALUES ( [autonumber]," & cID & ", " & uNumber & ", 'Kitchen')"
when I dont specify to insert ID, I get a key violation error.
thanx