|
-
Mar 23rd, 2002, 11:58 PM
#1
Thread Starter
Addicted Member
locktype error! help
I have the following line in my code but I keep getting the error: "Recordset does not support updating. This could be a limitation of the provider or of the current locktype"
RS.Open SQLstatement, SQLCON, adLockOptimistic
Does anyone know if that line is correct or not? I'm using MS SQL Server 2000
VB6, VB.NET, C#, SQL, XML, ADO.NET, ASP.NET, HTML.
MCP & A+ Certified. Looking for a job in the Seattle, WA area.
-
Mar 24th, 2002, 12:02 AM
#2
Frenzied Member
Try
VB Code:
RS.Open SQLstatement, SQLCON, adOpenKeyset, adLockOptimistic
-
Mar 24th, 2002, 12:05 AM
#3
Thread Starter
Addicted Member
Thanks. Works perfect. What is OpenKeyset anyway?
VB6, VB.NET, C#, SQL, XML, ADO.NET, ASP.NET, HTML.
MCP & A+ Certified. Looking for a job in the Seattle, WA area.
-
Mar 24th, 2002, 12:09 AM
#4
Frenzied Member
Sets the cursor type, other options are: asOpenDynamic, adOpenForwardOnly, adOpenStatic
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
|