|
-
Nov 21st, 2003, 04:41 AM
#1
Thread Starter
Addicted Member
RecordCount -1
I understand that Cursor location can cause this problem. I tried to put cursor location and it prompts me error, it said
Arguement is wrong type or conflict with another or out of acceptable range. Kindly, assist me please. Thanks. Below is my code.
This is actually in VB script
Code:
set myConnection = CreateObject("ADODB.Connection")
set SQLrecordset = CreateObject("ADODB.Recordset")
myConnection.Open = "DSN=cnote;SOURCE=localhost;DATABASE=eai;user id='atoo';password='rtor' "
myconnection.CursorLocation = adUseClient ' Error here
VarSQL = "SELECT * FROM agcn_process where CN_CODE = '"&RstID&"' "
SQLrecordset.Open VarSQL, myConnection
Last edited by kokzai; Nov 21st, 2003 at 05:03 AM.
kC
-
Nov 21st, 2003, 06:18 AM
#2
Addicted Member
Re: RecordCount -1
Originally posted by kokzai
I understand that Cursor location can cause this problem. I tried to put cursor location and it prompts me error, it said
Arguement is wrong type or conflict with another or out of acceptable range. Kindly, assist me please. Thanks. Below is my code.
This is actually in VB script
Code:
set myConnection = CreateObject("ADODB.Connection")
set SQLrecordset = CreateObject("ADODB.Recordset")
myConnection.Open = "DSN=cnote;SOURCE=localhost;DATABASE=eai;user id='atoo';password='rtor' "
myconnection.CursorLocation = adUseClient ' Error here
VarSQL = "SELECT * FROM agcn_process where CN_CODE = '"&RstID&"' "
SQLrecordset.Open VarSQL, myConnection
Well try specifying the cursorlocation for the recordset instead
Cute Member 
-
Nov 21st, 2003, 06:20 AM
#3
Addicted Member
Also u need to set the cursorlocation before opening the connexion not after opening
Cute Member 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|