|
-
May 17th, 2013, 09:45 AM
#1
Thread Starter
Junior Member
Microsoft Visual Basic
Run- time error '3251':
Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype.
-
May 17th, 2013, 10:26 AM
#2
Re: Microsoft Visual Basic
Thank you for that error message. You posted it very well. Now, what do you want us to do about it? The error message tells you what the issue is. You haven't told us what you're trying to do or what you're trying to do it with so, while it's flattering that you think we know everything, we actually don't so you have to tell us about your project because you're the only one who's seen it.
-
May 17th, 2013, 10:52 AM
#3
Thread Starter
Junior Member
Re: Microsoft Visual Basic
Project: A school admission system software
Form: frmPay.frm
Theme: Visual Basic 6.0 and MS- Access 2007 adodb connection
Debug result and surrounding code:
-
May 17th, 2013, 12:18 PM
#4
Re: Microsoft Visual Basic
I have a feeling this guy isnt saying anything o.O. You dont just post error messages, and where it happened. Say something!
-
May 17th, 2013, 12:30 PM
#5
Re: Microsoft Visual Basic
I've never used VB6. I've never used ADO. I read your code and went straight to MSDN and searched for the value you're assigning to the CursorLocation property, i.e. adUseClient. That documentation says:
If the CursorLocation property is set to adUseClient, the recordset will be accessible as read-only, and recordset updates to the host are not possible.
Fairly obvious why the error then.
-
May 17th, 2013, 02:10 PM
#6
Re: Microsoft Visual Basic
Actually you can update a recordset with the setting of adUseClient. That would not be the issue. The type of recordset or the location of the file would be the likely problem.
For example if the recordset is opened using the ForwardOnly option or if the db itself is locked by another user or is on a shared drive where it is granting read only access this would be the message you would get.
try adding
Code:
rs.CursorType=adOpenDynamic
or
Code:
rs.CursorType=adOpenStatic
Just above the with statement
Last edited by DataMiser; May 17th, 2013 at 02:14 PM.
-
May 17th, 2013, 06:28 PM
#7
Re: Microsoft Visual Basic
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
-
May 18th, 2013, 02:58 AM
#8
Thread Starter
Junior Member
Re: Microsoft Visual Basic
So what should I specify instead of adUseClient?
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
|