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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Move to last record 1

Status
Not open for further replies.

discusmania

IS-IT--Management
Oct 24, 2000
158
AP
Hi guys.....

Who knows how to move to last record in oracle db?

for example i want to get the value on entry_id field for the last record in mydata table. how to get that? can i use movelast?

TQ
Nor
 
You can do that in your SQL statement (which is fastest!) like this:

strSQL = "SELECT MAX(entry_id) As LastAdded FROM mytable"

Open a recordset with this statement, and output the last record like this:

<%= RS(&quot;LastAdded&quot;) %>

Good luck man, hope this helps...


<webguru>iqof188</webguru>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top