Results 1 to 5 of 5
  1. #1
    Ganymede is offline Competent Performer
    Windows 7 64bit Access 2016
    Join Date
    Dec 2011
    Posts
    106

    How to Set a Linked Access Table to Read Only

    I have a database (database1) that contains a linked table from another database (database2). I want to modify the table so that it is read-only in database1.

    My instinct was to open the linked table manager, select the linked table, hit the edit button, and change the IMEX property to 1. I understand that is the read-only property.

    But when I open the linked table manager and select the linked table, the "Edit" button is greyed out. So I am unable to change the IMEX property.

    Is there another way to accomplish the same result?

  2. #2
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,372
    You can't make a table read only. Make a query that returns the records from the table and set its dataset type to Snapshot. Since users should not be seeing the navigation pane then they won't be able to get around this - provided you take precautions that prevent them from opening the nav pane.

    EDIT- another option is to put a table into another db file and make the file read only. However, if you do this with the table that is in db1, then no one can edit the table in db1 either (it would now be linked to this new db file). If you copy the table into db2 you have the problem of the copy table getting out of sync with the original table. I've never tried, but I imagine you could link to the table in this new file and make the file read only. Lastly, the idea of making a table read only suggests to me that there is something being missed here. With proper design and db setup, you should not need to do this at all. Making something "read only" should be based on user permissions.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2013 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,235

  4. #4
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,127
    By default, a linked Excel table is read only. In this case, IMEX = 2
    To make a linked Excel table editable, see my article: Edit Linked Excel Data from Access
    Linked CSV files are ALWAYS read only

    In fact, it is possible to make any local or linked table read only by using table constraints - see attached example
    This will still work if the table is linked
    However the table constraint approach is very obscure and I wouldn't recommend using it.

    As users should never have direct access to tables (or queries) from the navigation pane, you should just use a form and make that read only using the property sheet or a read only recordset.
    Attached Files Attached Files
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  5. #5
    Ganymede is offline Competent Performer
    Windows 7 64bit Access 2016
    Join Date
    Dec 2011
    Posts
    106
    Thank you all! Marking as solved.

    (I was able to get around this by setting the form as read only. So it doesn't matter that the table is read/write.)

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

Similar Threads

  1. How to create linked tables only read only?
    By jaryszek in forum Forms
    Replies: 5
    Last Post: 07-13-2018, 07:57 AM
  2. Linked Table All of a sudden changed to Read Only
    By RayMilhon in forum SQL Server
    Replies: 2
    Last Post: 11-11-2016, 04:02 PM
  3. Replies: 1
    Last Post: 07-14-2015, 02:42 AM
  4. Replies: 4
    Last Post: 09-02-2014, 11:43 AM
  5. Replies: 2
    Last Post: 10-19-2006, 04:37 PM

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