Forums
This topic is locked
URGENT... PLEASE SOMEONE HELP ME
Posted 25 Dec 2003 12:11:56
1
has voted
25 Dec 2003 12:11:56 Jasnie Jamilin posted:
I am a beginner but have to use the Dreamweaver MX 2004 to complete my assignment on web based application system. My problem is... I don't know how to display the last record from my database (Access XP ). I use the " Recordset.MoveLast" but got an error 'Rowset cannot ... backward'(something like that...). After that I include the adovbs.INC file but got another error. Replies
Replied 28 Dec 2003 01:57:34
28 Dec 2003 01:57:34 Tracy Hughes replied:
I think it's
<%=(rsyourrecordset_last)%>
<%=(rsyourrecordset_last)%>
Replied 28 Dec 2003 18:10:55
28 Dec 2003 18:10:55 Rene Bandsma replied:
Why not filter the database by ID? <pre id=code><font face=courier size=2 id=code>SELECT * FROM table ORDER BY Id DESC</font id=code></pre id=code>
Replied 18 Jan 2004 15:50:55
18 Jan 2004 15:50:55 me gotcha replied:
SELECT top 1 *
FROM tablename
ORDER BY id desc
FROM tablename
ORDER BY id desc
Replied 22 Jan 2004 23:53:28
22 Jan 2004 23:53:28 Tom Gibson replied:
that'll work but it sounds like you have change your cursor...
default setting is you can only move forward through a recordset...
if you need to move from one record to previous you need to change your cursor type to = 3
Tommy Gibson
default setting is you can only move forward through a recordset...
if you need to move from one record to previous you need to change your cursor type to = 3
Tommy Gibson