Results 1 to 6 of 6
  1. #1
    jaryszek is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2016
    Posts
    568

    How to create linked tables only read only?

    Hi,

    I would like to create linked tables read-only.

    I have Access FE and postgresql BE.


    In postgresql there is a problem to giving special roles as read only.

    So i think access will be the solution.

    How to do it?

    Best,
    Jacek

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,523
    not in a regular Access link, but the ODBC setup to Postgresql may have it.
    (control panel, admin tools, ODBC)
    some have a flag for Read Only

    if not, you can set all queries as snapshot (read only)
    and all forms to read only.

  3. #3
    jaryszek is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2016
    Posts
    568
    thank you ranman256,

    there is no something like read-only in ODBC
    So i have to build firms to give accesses for each table.

    Best,
    Jacek

  4. #4
    Minty is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,002
    Can you not create a view to the table in Postgresql then make it only have select permissions?
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  5. #5
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,974
    If the view doesn't have a primary key, update queries won't be possible.
    Even so, the view can still be directly edited if users have direct access to it or to a query based on it.

    However, users should only be able to work with data using forms.
    So just make your form(s) read only either by using a read only record source or by locking the form controls
    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

  6. #6
    jaryszek is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2016
    Posts
    568
    Thank you Guys.

    I will try to do only forms to handle it.

    Best Wishes,
    Jacek

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

Similar Threads

  1. How to create a query when one of the linked tables has no data
    By SagarHussain in forum Database Design
    Replies: 3
    Last Post: 12-15-2015, 09:48 PM
  2. Replies: 1
    Last Post: 10-16-2014, 10:36 PM
  3. Create Linked Read-Only File
    By kazaccess in forum Access
    Replies: 10
    Last Post: 02-13-2014, 08:43 PM
  4. Replies: 10
    Last Post: 07-31-2012, 11:02 AM
  5. Replies: 1
    Last Post: 08-19-2009, 01:14 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