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!

Get value from a new record

Status
Not open for further replies.

crabgrass

Technical User
Aug 29, 2007
111
US
Suppose you use a command like oRS.addnew to add a new record to a data table, and suppose the table includes an autoinc field where the value is automatically established by the database, is there a way to query the value in this new record's autoinc field other than reissuing the select and oRS.movelast to get the new record?

Thanks
 
Depends on what db you're using. If its MySQL then try
If its MSSQL then try
___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
Steam Engine Prints
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top