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!

AutoNumber

Status
Not open for further replies.

gmariog

Programmer
Aug 27, 2001
3
0
0
US
Does anyone know why I can retrieve the value of an AutoNumber field in Access before updating the recordset, but I can't do the same in SQL server.

Example:
************************
In Access this works:

rs.AddNew

iID = rs.Fields("ID") '*** AutoNumber field

rs.update
***********************

In SQL Server it returns a NULL. I have to update the recordset first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top