Ask a Question related to ASP Database, Design and Development.
-
Adam Knight #1
End Of Recordset!!
Mostlikely a very simple answer to this question.
I am wanting to move to the last record in a recordset and extract a value
from it.
When i go move last and move previous i get an error saying catch fetch
backwards.
I augment my ignorance,..but here goes..how do i do this ??
Adam Knight Guest
-
ASP Recordset Help!
Hi, I have been trying to construct a results page in dreamweaver/asp if i put a search in with one parameter it works fine (ie, select name from... -
Using a Recordset
I'm trying to expand my web design skills by learning how to include some dynamic content in a site. Currently I have an Access database, and... -
Is this possible with a recordset?
Hello, Looking for some expert help. I am using Dreamweaver MX 2004. I have a need that I was wondering if it was possible accomplish using a... -
ADO - Recordset
I was wondering if anyone can help me. I've converting an already existing system (designed in Access which produces reports for the accounts dept)... -
RecordSet.Move or RecordSet.AbsolutePosition??
Hi, I'm trying to use either one of these methods to position the cursor in a specific position inside a recordset, but neither one seems to... -
Ken Schaefer #2
Re: End Of Recordset!!
a) Use the ORDER BY clause in your SQL statement to reorder the recordset in
the order that you want
-or-
b) If you need all the records, but you need to use the last value first,
then:
Set objRS = objConn.Execute(strSQL)
' Put results into a VBScript array
If not objRS.EOF then arrResults = objRS.GetRows
' Get rid of ADO object
objRS.Close
Set objRS = Nothing
objConn.Close
Set objConn = Nothing
' Get last value
If isArray(arrResults) then
strLastValue = arrResults(0, UBound(arrResults(2) -1)
End If
Cheers
Ken
"Adam Knight" <aj.knight@optusnet.com.au> wrote in message
news:uEMiS%23qeDHA.1088@TK2MSFTNGP10.phx.gbl...
: Mostlikely a very simple answer to this question.
:
: I am wanting to move to the last record in a recordset and extract a value
: from it.
: When i go move last and move previous i get an error saying catch fetch
: backwards.
:
: I augment my ignorance,..but here goes..how do i do this ??
:
:
Ken Schaefer Guest



Reply With Quote

