Link to home
Start Free TrialLog in
Avatar of iluilyas
iluilyas

asked on

fetch current rec's AutoNumber ID

Hi list
Can anybody tell me how to get the record ID of a newly added record after updating the recordset ?
With MS Access as back end for our web application we used to do
rs.Open "SELECT * FROM table WHERE ID = -1)
rs.AddNew
rs("field1") = value1
rs("field2") = value2
etc
rs.Update

newID = rs("ID")

But this doesn't seem to work with MySQL (4.0.11) and MyODBC (3.51.06)
Any ideas ?

Thanks
ILyas

ASKER CERTIFIED SOLUTION
Avatar of VGR
VGR

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
SOLUTION
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