Results 1 to 4 of 4
  1. #1
    sash29 is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Jun 2016
    Posts
    3

    current recordset does not support updating, when access the DB from Network PC

    I have a problem like current recordset does not support updating. Ms-access Database and excel VBA in the same PC its working perfectly.
    If I access the excel VBA file and link the database from network PC, its not working.. occuring error like "current recordset does not support updating. this may be a limitation of the provider"




    Code:
    Dim cn As New ADODB.Connection
    Dim rs As New ADODB.Recordset
    Dim db As Variant
    Dim strSQL As String
    Dim wSheetName As Variant
    
    db = "\\SIMPLAN-SWATHI\Users\mgt\dbdata.accdb" //Network DB path
    
    cn.ConnectionString = "provider=Microsoft.ACE.OLEDB.12.0; Data Source=" & db
    cn.Open
    rs.Open "SELECT * FROM T_Booking;", cn, adOpenDynamic, adLockOptimistic
    
    With rs
            .AddNew
            .Fields("部屋ID").Value = Val(Cells(Selection(1).Row, 1))
            .Fields("利用期間開始日").Value = column_to_date(Selection(1).column)
            .Fields("利用期間終了日").Value = column_to_date(Selection(Selection.Count).column)
            .Fields("削除フラグ").Value = False
            .Fields("更新日時").Value = Now
            .Fields("登録日時").Value = Now
            .Update
        End With
    
    //Color setting of cell
     Selection.Interior.Color = bg_reserve_booking
     Selection.Borders.LineStyle = xlContinuous
    
     rs.Close
     Set rs = Nothing
     Set cn = Nothing

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    The odbc to excel MUST be set for updating excel outside of access.

  3. #3
    sash29 is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Jun 2016
    Posts
    3
    i cant understand.. please give me in details...

  4. #4
    sash29 is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Jun 2016
    Posts
    3
    please explain step by step in detail.. Im not aware in VBA...
    Database and excel are same folder in same PC updating without problem.
    If access the excel and link the database from network PC, the above problem is occurring.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 4
    Last Post: 01-22-2015, 09:57 AM
  2. Updating current Access Dbase
    By berger01 in forum Database Design
    Replies: 4
    Last Post: 06-28-2013, 01:35 PM
  3. Replies: 5
    Last Post: 08-08-2012, 01:28 PM
  4. Replies: 3
    Last Post: 04-12-2012, 05:09 PM
  5. Join A Recordset to the current db Table
    By mjellis in forum Programming
    Replies: 0
    Last Post: 08-10-2010, 02:44 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums