Force my Database to Open with Runtime Only

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sachuchem22
    New Member
    • Nov 2015
    • 39

    Force my Database to Open with Runtime Only

    I have created a simple databse in access 07 now I wan to open it with runtime only even if user having full version of access 07.how I do it. And i want to package and develop my databse with installer so which softwares are needed for it.
  • Seth Schrock
    Recognized Expert Specialist
    • Dec 2010
    • 2965

    #2
    There are a couple of ways to do this. First, you can rename your file to have a .accdr file extension. Or you can create a shortcut to the database and change the target to be
    Code:
    "Path to Access" "Original target path" /Runtime
    So an example would be (this is for Access 2010)
    Code:
    "C:\Program Files\Microsoft Office\Office14\MSACCESS.EXE" "C:\MyDatabase.accdb" /Runtime

    Comment

    • sachuchem22
      New Member
      • Nov 2015
      • 39

      #3
      Thank for your response. Seth. . But these are easily undo by user so I want to permanently set db to open with runtime only.

      Comment

      • Seth Schrock
        Recognized Expert Specialist
        • Dec 2010
        • 2965

        #4
        There is nothing that can't be undone by the user. If you are just trying to protect the database from changes, then you can make the database into an executable file (.accde). It will still open using the full version of Access, but no design changes are allowed. You would need to keep the original file in case there are any bugs that need fixed, but you could just publish the executable file to everyone else.

        Comment

        • sachuchem22
          New Member
          • Nov 2015
          • 39

          #5
          Ok and Thank you seth.....

          Comment

          • zmbd
            Recognized Expert Moderator Expert
            • Mar 2012
            • 5501

            #6
            *.accde is mostly what I do when I need to protect the design. As Seth pointed out, and I cannot stress enough, make sure you keep a copy of the "developmen t" database. We had an instance where someone "accidently " created the executable version using the only copy of the front-end database... and of course, years later changes needed to be done. Had to rebuild everything from scratch.

            + The downfall of the runtime environment is two fold in that you have to create all of the menus that you want the user to have AND all of your code must have proper error handling. While the latter is something that should be done as good coding practice, the former has become more difficult for the beginning to intermediate programmer with the advent of the "Ribbon" to replace the old menu/command-bars. The executable is a nice compromise with protecting the main interface as well as allowing the user to interact with the common Ribbon tools.
            Last edited by zmbd; May 20 '16, 10:12 PM.

            Comment

            Working...