I found the following script which I was able to figure out how to get the values and HTML them. This script originally got 25 records starting at the beginning [number] and moved through the database Ascending until the end. I changed the ASC to DESC which correctly grabs the last record and html&#039s 5 records in descending order. The problem is that I haven&#039t been able to figure out how to grab the next previous 5 records and so on until it reaches the beginning of the database. I know just enough about this stuff to get myself into trouble so any help you could reccomend would be greatly appreciated. <BR><BR><BR>&#060;%<BR>Server.ScriptTimeout = 120<BR>if Request("recnum") = "" then<BR> recnum = 0<BR>else<BR> recnum = Request("recnum")<BR>end if<BR>category = Request("category")<BR>company = Request("company")<BR>city = Request("city")<BR>state = Request("state")<BR>description = Request("description")<BR>Set rs = Server.CreateObject("ADODB.RecordSet")<BR>rs.MaxRe cords = 5<BR>q = "SELECT * FROM jobs WHERE ((company LIKE &#039" & company & "%&#039) OR (&#039" &_<BR> company & "&#039=&#039Any&#039)) AND ((category LIKE &#039" & category & "&#039) OR (&#039" & category &_<BR> "&#039=&#039Any&#039)) AND ((city LIKE &#039" & city & "%&#039) OR (&#039" & city & "&#039=&#039&#039))" &_<BR> " AND ((state LIKE &#039" & state & "%&#039) OR (&#039" & state & "&#039=&#039&#039)) AND (description" &_<BR> " LIKE &#039%" & description & "%&#039) AND (approved=TRUE) AND [number]&#062;" &_<BR> recnum & " ORDER BY [number] DESC"<BR>rs.Open q, "DSN=jobs;"<BR>x = 0<BR>if NOT rs.EOF then<BR> while NOT rs.EOF<BR> if x &#060; 5 then<BR> x = x + 1<BR> recnum = rs("number").value<BR> end if<BR> rs.MoveNext<BR> wend<BR> rs.Close<BR> rs.Open q, "DSN=jobs;"<BR>end if<BR>%&#062;<BR>