Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    daveone23 is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Feb 2024
    Posts
    25

    Locking down a data base

    Is there a way that I can lock down a data base so that no one can modify it (design view) yet still be able to add and delete records/fields?

  2. #2
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    Is there a way that I can lock down a data base so that no one can modify it (design view) yet still be able to add and delete records/fields?
    I think you have a catch-22 question there. You can't prevent design changes and still be allowed to add or delete fields. Adding or updating records would be a normal function of the db, whether locked down or not. Perhaps you are needing to convert a db copy to an .accde? That would prevent design changes to db objects.

    Maybe by "delete fields" you meant deleting data in fields.
    Last edited by Micron; 02-09-2024 at 10:58 AM. Reason: clarification
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,940
    Yes, accde/accdr file.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  4. #4
    daveone23 is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Feb 2024
    Posts
    25
    I did that and when I run it, it comes up with a warning that it could contain harmful information. That would scare most end users away from using it. Is there a way to remove that warning?

  5. #5
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    Should not happen if you put the files in a Trusted Location. Exception could be if the files were downloaded from the web, but I think that is not the case here.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  6. #6
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,474
    Just to clarify, you want them to be able to enter data, just not change anything with the design? Not sure how "secure" you want it, you could disable the Shift key in code OnOpen and hide the ribbons, etc.

  7. #7
    daveone23 is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Feb 2024
    Posts
    25
    Yes, enter data, not change the design. I converted the file on my system like you guys said but i get that file warning message. No web transfer.

  8. #8
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    Have a look at my article: Improve Access Security 2 (isladogs.co.uk)
    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

  9. #9
    daveone23 is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Feb 2024
    Posts
    25
    I took a look at that article, more of a book and way above my knowledge. I am a novice user. I just need to get rid of that initial warning message when opening up the compiled data base

  10. #10
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    To get rid of the message, run it from a trusted location as already mentioned.
    My article covers all the steps needed to lock down your database to make it reasonably secure which is the subject line for this thread.
    Last edited by isladogs; 02-12-2024 at 02:14 AM.
    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

  11. #11
    daveone23 is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Feb 2024
    Posts
    25
    I am opening it in a very secure area. I got into the trust center and played around with the macro selections, nothing changed.
    Click image for larger version. 

Name:	WARNING.png 
Views:	26 
Size:	11.3 KB 
ID:	51467

  12. #12
    daveone23 is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Feb 2024
    Posts
    25
    Ok, I "CREATED" a trusted area on my hard drive and it works BUT can I expect every user that download my data base to set up a "trusted" area. Seems like a real hassle.

  13. #13
    Minty is offline VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,003
    If they put it their main Documents folder, that should already be a trusted location. It's a one time operation to add a trusted location.
    If it makes you feel any better, you would have the same hassle with a macro enabled Excel workbook. It's part of Microsoft's attempts to "protect" us from ourselves.
    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 ↓↓

  14. #14
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    You can use an installer for the user to run. The installer can add a trusted location to the windows registry then copy the file to the specified directory and perhaps create a shortcut on the user’s desktop.

    otherwise include some instructions as to how the user should install your app

  15. #15
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,474
    Is there a windows command line to set a trusted location? I usually do this manually through Access but would be nice to add to a vb.exe I use to create the folder on harddrive, and copy the database to it.

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 04-18-2018, 09:02 PM
  2. Replies: 4
    Last Post: 09-18-2014, 06:41 AM
  3. data base locking up
    By cwitt11 in forum Access
    Replies: 9
    Last Post: 07-21-2014, 01:28 PM
  4. Replies: 1
    Last Post: 07-08-2014, 06:22 AM
  5. oracle data base
    By mohammad in forum Access
    Replies: 1
    Last Post: 02-18-2014, 12:35 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