Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is wrong with my code?

Status
Not open for further replies.

BeeDeeBee

Programmer
Dec 18, 2000
5
US
Please help. I may be overlooking something obvious. I have included the error message when the page is published.

<html>

<head>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=windows-1252&quot;>
<meta name=&quot;GENERATOR&quot; content=&quot;Microsoft FrontPage 4.0&quot;>
<meta name=&quot;ProgId&quot; content=&quot;FrontPage.Editor.Document&quot;>
<title>CheckData</title>
</head>

<body>
<%
' Create Connection
Set InormConn=Server.CreateObject (&quot;ADODB.Connection&quot;)
InormConn.Open &quot;DSN=RapidWeb&quot;
'
' Create Recordset Object
set rsInorm=Server.CreateObject (&quot;ADODB.Recordset&quot;)
'
'Set rsInorm methods
rsInorm.ActiveConnection=InormConn
rsInorm.CursorType = adOpenKeyset
rsInorm.LockType=adLockOptimistic ' Line 22
rsInorm.Source=&quot;tabApprovals&quot;
rsInorm.Open


ADODB.Recordset error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/CheckData.asp, line 22
 
Hi

In your case these values would be
rsInorm.CursorType = 1 'adOpenKeySet
rsInorm.LockType = 3 ' adLockOptimistic

Have fun
caf
 
1. On the connection you need to specified the database name and table name:
Set mCon = &quot;DSN=yourDSN;DataBase=yourDB&quot;
2. On the Recordset need to have the query string:
mRecord.Open &quot;SELECT * FROM yourTable&quot;, mConn(Active Connection)


Try that tvuong@kempercm.com
Programmer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top