By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,705 Members | 1,829 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,705 IT Pros & Developers. It's quick & easy.

ADO: new ID after insert

P: n/a
Hi,

How is the best way to know the ID of the inserted record after rs.update

Is this code OK
.Update
.MoveLast
iNewProductId = .Fields(0).Value

Filip

Nov 12 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
I would get rid of .MoveLast. You are already in the record at that
moment, I think:

..Update
iNewProductId = .Fields(0).Value

Pavel

Filips Benoit wrote:

Hi,

How is the best way to know the ID of the inserted record after rs.update

Is this code OK
.Update
.MoveLast
iNewProductId = .Fields(0).Value

Filip

Nov 12 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.