Results 1 to 9 of 9
  1. #1
    Cleave_1b is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    27

    Access 2010 Table suddenly read-only, how do I remove that restriction?

    This application has worked fine in the past, but now I find it stops cold saying a particular linked table is read-only. I've looked around and all I can find in the various forums is how to MAKE a table read-only. Reversing that process seems very difficult.



    The application is a copy of another that now exhibits the same problem. Each uses a different data mdb - part of the development I'm doing involves changing a different table. I'm developing changes to the application in this separate copy.

    I can't tell if other tables would have this problem - the table in question is the very first used (initialization routine) and I can't get past it without deactivating a bunch of code.

    I sure could use help on this one!

  2. #2
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    We can't advise because we don't know the routine code. Of course tables can be locked via code. Example:
    Set r = CurrentDB.OpenRecordset(SomeTable, dbOpenTable , dbDenyRead)
    However, I suspect that you have changed the Record Locks! Is this db being used in multi-user environment? What are your requirements for editing a record? Is some form based on a query and the record locks being incorrectly set?

  3. #3
    Cleave_1b is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    27
    I have just found that this is unique to my windows 7 desktop computer. Works ok on my windows 8 computer. The code is identical (dropbox keeps them updated). Must be something not in the application itself. What sort of thing could it be "on the outside?"

  4. #4
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Using Dropbox is going to cause you corruption, suggest you stop using it.

  5. #5
    Cleave_1b is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    27
    I've used Dropbox for years now and never had a problem. Sugarsync was disastrous. It IS important, however, to give Dropbox plenty of time to sync before switching computers.

    The unchanged application is now stopping at a different place on the desktop computer. The code:

    Public Sub LogPoint(Process As String, Point As String)
    If Not FileExists("P:\Log\Log.txt") Then Open "P:\Log\Log.txt" For Output As #1
    Close #1
    Open "P:\Log\Log.txt" For Append As #1 '<<<<<<<<<<<<<<<<<<<< Here's the error stop
    Print #1, Format(Now(), "MM/DD/YYYY-HH:MM"), CurrentEditor, Process, Point
    Close #1
    End Sub

    the function called is

    Public Function FileExists(F As String) As Boolean
    On Error GoTo no
    FileExists = True
    Open F For Input As #33
    Close #33
    On Error GoTo 0
    Exit Function
    no:
    FileExists = False
    On Error GoTo 0
    End Function



    The log file does exist with the same name in the same place. P: is a mapped drive. The log file is used as an external record, mostly of what user was doing what when so we can trace back for data goofs. In case anyone wonders, I did reboot yesterday and I got the same error.

    Click image for larger version. 

Name:	error.jpg 
Views:	7 
Size:	12.0 KB 
ID:	18657

  6. #6
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383

  7. #7
    Cleave_1b is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    27
    I've narrowed the problem to the use of the mapped drive (P. If I replace it with the defined directory name the error does not occur. On a search I found that there is a possibility that it has to do with permissions.I verified that I am logged in as administrator and checked user privileges and all are set.

    Something just occurred to me: I recently swapped out my hard drive on the desktop with what I call a "soft drive" - an SSD. The speed-up resulting might have something to do with the situation. Any ideas? Should I put in a sleep call?

  8. #8
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    I don't think the drive has anything to do with it. Is the problem resolved now? You don't need a sleep call unless under very special conditions. I don't think that applies in your case.

    Good Luck!

  9. #9
    Cleave_1b is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    27
    Thank you - you're right; I put in a 50 ms sleep and it did nothing. Actually I should have realized it because of the delay between the error stop and the retry with F5 was plenty long.

    PROBLEM SOLVED:

    It was the mapping of P: I redefined the network, mapped P to "same place" and things work. The difference was that P was originally

    \\Rgcdesk\c\Users\Dick\Dropbox\VoterNew

    Where it should have been

    \\RGCDESK\Users\Dick\Dropbox\VoterNew

    Sigh!

    Thanks to you, Dave, for sticking with me through all these dead ends!

    Dick

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

Similar Threads

  1. Replies: 7
    Last Post: 07-31-2014, 07:22 AM
  2. Replies: 3
    Last Post: 05-26-2013, 12:19 PM
  3. Access 2010 form opening as read only
    By tracer in forum Forms
    Replies: 5
    Last Post: 02-10-2012, 03:52 PM
  4. form is suddenly read-only
    By Karen H in forum Forms
    Replies: 28
    Last Post: 02-14-2011, 08:38 AM
  5. How do i remove access 2010 security
    By sam49 in forum Security
    Replies: 26
    Last Post: 11-15-2010, 10:22 AM

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