Results 1 to 2 of 2
  1. #1
    Ignace is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    5

    How to prevent Front End user to see the tables in the back end

    HI



    i created a database for our company and aplit the database.
    the fornt end is an .ACCDE, which contains the forms, queries, macro and reports that the users need. the front end user need to enter a password when opening the file for protection purposes.

    However, although split, the users can still see the tables listed in the "all Access Objects" panes on the left (OUtlook 2010). this also means that they can open the tables (instead of using the forms that i created) and therefore alter the data of the tables.
    this is obviously not ideal and potentially dangerous.

    is there a way for the users to be "forced" to use only the forms that i created and have NO direct access or see the tables in the back end? i.e. just use the forms, macro and queries that are in the front end?

    thanks a lot for your help. as you might have figured out i am not a pro with access!

    I
    Last edited by Ignace; 11-16-2012 at 08:23 AM.

  2. #2
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2002
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Try this code:
    Function setHidden(objType As Integer, hideIt As Boolean)
    'setHidden(int,bool) sets the hidden properties of Applicaiton objects ie tables, queries, forms
    'objType determines table, query or form
    'hideIt hides or shows objects dependent on true of false

    Dim myObj As AccessObject, fromWhat, db As Object, whatType As Integer
    Set db = Application.CurrentData
    Select Case objType
    Case 1
    Set fromWhat = db.AllTables
    whatType = 0 'acTable int val = 0
    Case 2
    Set fromWhat = db.AllQueries
    whatType = 1 'acQuery int val = 1
    End Select
    For Each myObj In fromWhat
    On Error Resume Next
    Application.SetHiddenAttribute whatType, myObj.Name, hideIt
    Next myObj
    End Function

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

Similar Threads

  1. Replies: 7
    Last Post: 03-13-2013, 07:34 PM
  2. Replies: 1
    Last Post: 11-13-2012, 02:27 PM
  3. Replies: 1
    Last Post: 01-04-2012, 01:39 PM
  4. Front end link to back end
    By Melo in forum Security
    Replies: 4
    Last Post: 01-21-2011, 09:25 PM
  5. Replies: 7
    Last Post: 05-15-2010, 10:12 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