?
Solved

Deployment with MS Access

Posted on 2006-11-25
3
Medium Priority
?
202 Views
Last Modified: 2010-04-23
I have a visual basic application that is using microsoft access as it's database. When I deploy the application, I  do not want the user to be able to edit the database. Is there any way to prevent that from happening?

Also is there anyway to prevent the microsoft access database from being deployed with the application, but allow the application to be run from another machine.

Any help would be appreciated or links to tutorials.

Thanks
0
Comment
Question by:carter_jl
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 13

Accepted Solution

by:
newyuppie earned 1000 total points
ID: 18013637
1) if the user has Microsoft Access, there is not much you can do to prevent editing, unless you password-protect the database file. if you wish to have better security for your databases maybe you should consider moving to something like SQL Server or MySQL.

2) the only way you can connect to the database from another machine which hasnt the database file would be to place the .mdb file on a shared server (a network) and modify your connection string accordingly so that it will find it wherever you put it.
again, according to your needs i would suggest you look into MySQL or MSSQL they are built especially for the kind of things you want to do.

NY
0
 
LVL 24

Assisted Solution

by:Jeff Certain
Jeff Certain earned 1000 total points
ID: 18014140
Actually..... there is a way to keep users out. What you need to do is use the startup properties  (Tools >> Startup) to turn off all the stuff that allows a user to access your database (i.e. hide the menu bars and the database window).

I know, you're thinking... "But holding the shift key down when you start Access avoids the startup properties and the AutoExec macro."

True, true.... but there's a poorly documented property (called AllowBypassKey) you can create (and set) to stop that too. There's a good tutorial on how to create the property here: http://www.mvps.org/access/general/gen0040.htm

Warning: Once you lock out the bypass key, everyone is locked out. So I usually create a hotkeys macro to use some bizarre key combination (like Alt+Shift+F5/F6) to turn the bypass key on and off. That aside, you'll definitely want to make a copy of your database and put it somewhere safe before playing with this.

As newyuppie pointed out, there are serious issues with using Access in a concurrent multi-user environment. You are far better to deploy SQL Server Express (it's free) ... although you don't get the Access UI tools.
0
 

Author Comment

by:carter_jl
ID: 18022013
Thanks guys.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question