hi everyone,

how to track for the last record so that when press "NEXT" button and 
comes to the last record, it won't go next but remain display the 
LAST record? i have tried the following but not success..pls 
advice..thanks..

If request.form("combutton")="NEXT" Then
recid=recid+1
End If

<recordset declaration>
sql="select * from leavepending where numid='" & recid & "'"

rs.movelast
numrec=rs("numid")

eg. last record is 103, the <input type="text" value=<% rs("numid") %
> will just display 103 regardless how many times the "NEXT" button 
is pressed





------------------------ Yahoo! Groups Sponsor ---------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/saFolB/TM
---------------------------------------------------------------------~->

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
     [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 

Reply via email to