Have an ADO Recordset populated with data from an oracle table.
I am trying to implement the find method of the recordset to find a row.
I recieve a error upon the execution of the find statement in my code which states:
"Runtime Error '-2147217879 (80040e29)
Rowset does not support scrolling backward"
I tried to correct this eror in VB and was able to do so by making my recordset cursor type adOpenStatic. (within the Open method call) This was unable to fix my VBScript code however...any ideas??
here is my code...I can't seem to figure out what is wrong. Any help would be greatly appreciated.
(VB6....altered for VBscript code)
Thanks
-vza
I am trying to implement the find method of the recordset to find a row.
I recieve a error upon the execution of the find statement in my code which states:
"Runtime Error '-2147217879 (80040e29)
Rowset does not support scrolling backward"
I tried to correct this eror in VB and was able to do so by making my recordset cursor type adOpenStatic. (within the Open method call) This was unable to fix my VBScript code however...any ideas??
here is my code...I can't seem to figure out what is wrong. Any help would be greatly appreciated.
(VB6....altered for VBscript code)
Code:
Dim RsFind As New ADODB.Recordset
Dim NTAGNumber
NTAGNumber = NTAGText.Text
' Open RecordSets
RsFind.Open "Select * From PI_GIS", Cn
If NTAGText.Text <> "" Then
RsFind.Find "Field1 = 'NTAGNumber'"
If RsFind.EOF = True Then
TAGText.Text = RsFind.Fields("Field2").Value
DESText.Text = RsFind.Fields("Field3").Value
LOCText.Text = RsFind.Fields("Field4").Value
PointText.Text = RsFind.Fields("Field5").Value
End If
Else
MsgBox "Specified values do not exist within the Table. Please re-insert.", vbOKOnly, "Error"
End If
Thanks
-vza