I get the standard "ADODB.Recordset (0x800A0BB9)Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another." When I run the following code:
=========================================================
<%
set conn=server.createobject("ADODB.Connection"
conn.open "DSN=mytui_test;UID=sa;Password="
Dim objRec ' recordset object
' create the recordset object
Set objRec = Server.CreateObject ("ADODB.Recordset"
' now open it
objRec.Open "DidYouKnow", strConnect, adOpenForwardOnly, adLockReadOnly, adCmdTable
' add the new records
objRec.Addnew
objRec("Title"
= "Interesting title 1"
objRec("Fact"
= "Interesting fact 1"
objRec.Addnew
' now find the records
objRec.Find "Title = 'Interesting title 1'"
objRec.Find "Fact = 'Interesting fact 1'"
If objRec.EOF Then
Response.Write "Record not found"
Else
Response.Write "Successfully found 'Title' <br>"
Response.Write "Successfully found '" & objRec("Fact"
& "'"
End If
' now close and clean up
objRec.Close
Set objRec = Nothing
%>
========================================================
"DidYouKnow" is a table in the "mytui_test" SQL DB.
Any ideas?
=========================================================
<%
set conn=server.createobject("ADODB.Connection"

conn.open "DSN=mytui_test;UID=sa;Password="
Dim objRec ' recordset object
' create the recordset object
Set objRec = Server.CreateObject ("ADODB.Recordset"

' now open it
objRec.Open "DidYouKnow", strConnect, adOpenForwardOnly, adLockReadOnly, adCmdTable
' add the new records
objRec.Addnew
objRec("Title"

objRec("Fact"

objRec.Addnew
' now find the records
objRec.Find "Title = 'Interesting title 1'"
objRec.Find "Fact = 'Interesting fact 1'"
If objRec.EOF Then
Response.Write "Record not found"
Else
Response.Write "Successfully found 'Title' <br>"
Response.Write "Successfully found '" & objRec("Fact"

End If
' now close and clean up
objRec.Close
Set objRec = Nothing
%>
========================================================
"DidYouKnow" is a table in the "mytui_test" SQL DB.
Any ideas?