S
scorpion53061
I am attemtping to add a record to SQL Server.
I am trying to find an example of how to increment the primary key value
like we do in Access.
Can anyone point me to an example?
I tried the code from Access and it writes the first record as -1 and then
complains about distinct errors.
Thank You!!
Dscustaction1.Tables(0).Columns(0).AutoIncrement = True
'.IDColumn.AutoIncrement = True
Dscustaction1.Tables(0).Columns(0).AutoIncrementSeed = -1
Dscustaction1.Tables(0).Columns(0).AutoIncrementStep = -1
I am trying to find an example of how to increment the primary key value
like we do in Access.
Can anyone point me to an example?
I tried the code from Access and it writes the first record as -1 and then
complains about distinct errors.
Thank You!!
Dscustaction1.Tables(0).Columns(0).AutoIncrement = True
'.IDColumn.AutoIncrement = True
Dscustaction1.Tables(0).Columns(0).AutoIncrementSeed = -1
Dscustaction1.Tables(0).Columns(0).AutoIncrementStep = -1