Results 1 to 3 of 3
  1. #1
    ccsenn is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Nov 2014
    Posts
    2

    LEFT JOIN produces 3027 Error: Cannot update. Database is read only

    I would appreciate any advise on resolving a 3027 - Database is read only error.

    Thanks in advance!



    Charlie

    Code:
    Dim Faculty As DAO.Database
    Dim AADSSolicitationsDynaset As DAO.Recordset
    
    SelectPhrase = "SELECT AADSSolicitations.SolicitationNumber, AADSSolicitations.DatelastProcessed, " & _
                   "AADSMultiYearAnnouncements.[Obsolete-LT120Days] " & _
                   "FROM AADSSolicitations LEFT JOIN AADSMultiYearAnnouncements " & _
                   "ON AADSSolicitations.SolicitationNumber = AADSMultiYearAnnouncements.SolicitationNumber " & _
                   "ORDER BY AADSSolicitations.SolicitationNumber"
    
    Set AADSSolicitationsDynaset = Faculty.OpenRecordset(SelectPhrase, dbOpenDynaset)
    
    AADSSolicitationsDynaset.AddNew  '"3027 Cannot update. Database is read only" is generated'
    AADSSolicitationsDynaset![SolicitationNumber] = 537
    AADSSolicitationsDynaset![DateLastProcessed] = Date
    AADSSolicitationsDynaset.Update

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Must be an issue with the table relationship and the join type.
    Review: http://allenbrowne.com/ser-61.html

    Or maybe just need to end the SQL with a semicolon.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    ccsenn is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Nov 2014
    Posts
    2
    Most Excellent! Many thanks for your list of possible causes. I had failed to establish the correct relationship between the tables. Once I did that and modified the SQL phrase appropriately, I was good to go!

    Did I mention I also appreciated the same day response!

    Charlie

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

Similar Threads

  1. Replies: 5
    Last Post: 04-22-2013, 12:32 PM
  2. Cannot update. Database or object is read-only ERROR
    By Namibia in forum Import/Export Data
    Replies: 2
    Last Post: 06-05-2012, 05:32 PM
  3. Runtime Error '3027': Database or object is read only
    By 4x4Masters in forum Programming
    Replies: 4
    Last Post: 06-08-2010, 08:02 PM
  4. Error using left join accessing 2 active connections
    By peterg2000 in forum Programming
    Replies: 0
    Last Post: 10-05-2009, 05:04 PM
  5. Update with LEFT JOIN
    By mcarthey in forum Access
    Replies: 1
    Last Post: 08-27-2008, 10:49 AM

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