|
-
Mar 20th, 2002, 09:50 AM
#1
Thread Starter
Hyperactive Member
obtaining record ID
I am using ASP (with VBScript) to work with an Access database. I want to create a record, and then immediately obtain the auto-generated ID field for that record. I tried something like this:
rs.Open etc...
rs.AddNew
rs("name") = "spandex"
rs.update
recordid = rs("ID")
However, this doesn't work. It doesn't give me a value at all.
How can I do this?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|