Results 1 to 8 of 8

Thread: Microsoft Visual Basic

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2013
    Posts
    17

    Angry 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.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Junior Member
    Join Date
    May 2013
    Posts
    17

    Question 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:
    Name:  pay.png
Views: 440
Size:  84.6 KB

  4. #4
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    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!

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  6. #6
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    14,206

    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.

  7. #7
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    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

  8. #8

    Thread Starter
    Junior Member
    Join Date
    May 2013
    Posts
    17

    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
  •  



Click Here to Expand Forum to Full Width