|
-
Sep 27th, 2000, 03:10 PM
#1
Thread Starter
New Member
hi
i need to search through a table to find the last entered record. the records are autonumbered under the "ID" so the last record entered should have the largert "ID" number.
i am using ado. is there a maximum function i could use???
ex: max(recordset.fields("ID")
or do i need to do something with an array?
Thanks!
jodilyn
-
Sep 27th, 2000, 03:14 PM
#2
Lively Member
How about
How about something like
rs.movelast
(rs being your recordset)
-
Sep 27th, 2000, 03:34 PM
#3
Addicted Member
Hi, try this...
"SELECT MAX(ID) as MaxValue FROM Table"
don't do this movelast thing because the RS will have to retreive all records before going to the last one...
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
|