473,394 Members | 1,701 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Keep users from going to design view

Hello All.

I would like some advice.
What is the best way to make an Access database design not accessible?
Like accessing tables, form design and etc.
Is it a good idea to make a MDE file? What other options do I have?

On more question should all users have their own front end?

Thanks a lot.
Simone Dupre
Nov 12 '05 #1
5 4300
Yes, creating an MDE is a great way to prevent users from switching your
forms and reports into design view, and prevent them messing with the code.

To prevent them messing with the design, set the database's AllowByPassKey
and AllowSpecialKeys properties of the MDE file to False. Details at
support.microsoft.com in k.b. article 313915.

Other options include the full security, but that's generally overkill
unless you have particularly sensitive data.

Yes, each user should have their own copy of the front end. It can be in
their workspace on a server if necessary, but it will run faster and reduce
network traffic if the application is installed onto their local hard disk.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Simone" <oi****@hotmail.com> wrote in message
news:fc**************************@posting.google.c om...

I would like some advice.
What is the best way to make an Access database design not accessible?
Like accessing tables, form design and etc.
Is it a good idea to make a MDE file? What other options do I have?

On more question should all users have their own front end?

Thanks a lot.
Simone Dupre

Nov 12 '05 #2
DFS
"Simone" <oi****@hotmail.com> wrote in message
news:fc**************************@posting.google.c om...
Hello All.

I would like some advice.
What is the best way to make an Access database design not accessible?
Like accessing tables, form design and etc.
Is it a good idea to make a MDE file? What other options do I have?
An .mde is best - for the front end. You can also laboriously use Access
security and set the permissions for each and every object so no one but you
can access design views.

On the back end, you actually might want to do something with permissions,
or set a database password.

On more question should all users have their own front end?
Yes.
Thanks a lot.
Simone Dupre

Nov 12 '05 #3
I use this most of the time. Create a "Welcome" form with no objects and add
this code to form_load.

*****CODE*****

Private Sub Form_Load()

Dim MyDB As Database
Set MyDB = CurrentDb
If UCase$(CurrentUser) = "ME" Or UCase$(CurrentUser) = "THEM" Then
MyDB.Properties("StartupShowDBWindow") = True
MyDB.Properties("StartupShowStatusBar") = True
MyDB.Properties("AllowBuiltinToolBars") = True
MyDB.Properties("StartupShowDBWindow") = True
MyDB.Properties("AllowFullMenus") = True
MyDB.Properties("AllowBreakIntoCode") = True
MyDB.Properties("AllowSpecialKeys") = True
DoCmd.Close acForm, "frmwelcome"
Exit Sub
End If

MyDB.Properties("StartupShowDBWindow") = False
MyDB.Properties("StartupShowStatusBar") = False
MyDB.Properties("AllowBuiltinToolBars") = False
MyDB.Properties("StartupShowDBWindow") = False
MyDB.Properties("AllowFullMenus") = False
MyDB.Properties("AllowBreakIntoCode") = False
MyDB.Properties("AllowSpecialKeys") = False
MsgBox ("You are an invalid user!!")
Quit
End Sub
Nov 12 '05 #4
Thanks for all your responses.

There is one more thing, even if I make an MDE the user can go into
the table and enter records. I hide the database window but let's say
some user that knows a little too much like the shortcut F11 he or she
will be able to go into the tables and enter data.
I don't want them doing that since there is a complex relationship and
they must use the forms.

Thanks
Simone

"None" <No**@none.com> wrote in message news:<0q********************@dls.net>...
I use this most of the time. Create a "Welcome" form with no objects and add
this code to form_load.

*****CODE*****

Private Sub Form_Load()

Dim MyDB As Database
Set MyDB = CurrentDb
If UCase$(CurrentUser) = "ME" Or UCase$(CurrentUser) = "THEM" Then
MyDB.Properties("StartupShowDBWindow") = True
MyDB.Properties("StartupShowStatusBar") = True
MyDB.Properties("AllowBuiltinToolBars") = True
MyDB.Properties("StartupShowDBWindow") = True
MyDB.Properties("AllowFullMenus") = True
MyDB.Properties("AllowBreakIntoCode") = True
MyDB.Properties("AllowSpecialKeys") = True
DoCmd.Close acForm, "frmwelcome"
Exit Sub
End If

MyDB.Properties("StartupShowDBWindow") = False
MyDB.Properties("StartupShowStatusBar") = False
MyDB.Properties("AllowBuiltinToolBars") = False
MyDB.Properties("StartupShowDBWindow") = False
MyDB.Properties("AllowFullMenus") = False
MyDB.Properties("AllowBreakIntoCode") = False
MyDB.Properties("AllowSpecialKeys") = False
MsgBox ("You are an invalid user!!")
Quit
End Sub

Nov 12 '05 #5
DFS
Simone,

Before you create your .mde, go into the Advanced options under Tools |
Startup and uncheck the Access Special Keys option, or do something like
what None does below with the AllowSpecialKeys property.

"Simone" <oi****@hotmail.com> wrote in message
news:fc**************************@posting.google.c om...
Thanks for all your responses.

There is one more thing, even if I make an MDE the user can go into
the table and enter records. I hide the database window but let's say
some user that knows a little too much like the shortcut F11 he or she
will be able to go into the tables and enter data.
I don't want them doing that since there is a complex relationship and
they must use the forms.

Thanks
Simone

"None" <No**@none.com> wrote in message

news:<0q********************@dls.net>...
I use this most of the time. Create a "Welcome" form with no objects and add this code to form_load.

*****CODE*****

Private Sub Form_Load()

Dim MyDB As Database
Set MyDB = CurrentDb
If UCase$(CurrentUser) = "ME" Or UCase$(CurrentUser) = "THEM" Then
MyDB.Properties("StartupShowDBWindow") = True
MyDB.Properties("StartupShowStatusBar") = True
MyDB.Properties("AllowBuiltinToolBars") = True
MyDB.Properties("StartupShowDBWindow") = True
MyDB.Properties("AllowFullMenus") = True
MyDB.Properties("AllowBreakIntoCode") = True
MyDB.Properties("AllowSpecialKeys") = True
DoCmd.Close acForm, "frmwelcome"
Exit Sub
End If

MyDB.Properties("StartupShowDBWindow") = False
MyDB.Properties("StartupShowStatusBar") = False
MyDB.Properties("AllowBuiltinToolBars") = False
MyDB.Properties("StartupShowDBWindow") = False
MyDB.Properties("AllowFullMenus") = False
MyDB.Properties("AllowBreakIntoCode") = False
MyDB.Properties("AllowSpecialKeys") = False
MsgBox ("You are an invalid user!!")
Quit
End Sub

Nov 12 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: John M | last post by:
Hi For reporting grades and comments about students, I use one subreport per subject. This includes a number of text boxes, some containing numerical data, but one containing a textual report. ...
4
by: deko | last post by:
Is there any way to let users compose and run SQL from the Access interface? If I create a new query from the Database Window, select Design View and then View >> SQL View, I get a window from...
16
by: Andy_Khosravi | last post by:
I'm in a bit of a pickle. My employer, a health insurance firm, had me design a small database to track benefit issues. The intended users were technical specialists and some managers (about 90...
1
by: VB Programmer | last post by:
When I go from HTML view (in a webform) to Design View I get the following error: Could not open in Design view. Quote values differently inside a '<% ... "value" ... %>' block. I know exactly...
37
by: spam.noam | last post by:
Hello, Guido has decided, in python-dev, that in Py3K the id-based order comparisons will be dropped. This means that, for example, "{} < " will raise a TypeError instead of the current...
6
by: google | last post by:
I have a few general questions. I am working on a new database to be used within my company. I would like to give a couple of people, particularly HR, the ability to add and delete Access users,...
7
by: zwasdl | last post by:
When I swtich to design view from data view, the query results are lost, and I have to run again to get it. Is there an option in access to keep the data when I switching views? I know I can copy...
1
by: pemigh | last post by:
I'm almost done with an application, and trying to lock it down tightly. But I still want users to be able to point to a new location for the data file. The code below fires off to detect and...
7
by: Skijor | last post by:
I just finished writing my first php script that manipulates a simple shopping cart on a mySql database. I started with an example I found on the web. The example hardcodes the database server,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.