473,379 Members | 1,201 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,379 software developers and data experts.

Hiding Query's

Hello All,

I have an Access Database, that i would like to hide all of the query's, and preventing them from being imported by another database. I tried to use the QueryDef's in the same way that you use the TableDef's
( ie. CurrentDb.TableDefs("TableName").Attributes=dbHidd enObject)
However, it won't allow me to hide the query's.

Anybody have any ideas?
Oct 22 '07 #1
5 1302
Curben
47
Hello All,

I have an Access Database, that i would like to hide all of the query's, and preventing them from being imported by another database. I tried to use the QueryDef's in the same way that you use the TableDef's
( ie. CurrentDb.TableDefs("TableName").Attributes=dbHidd enObject)
However, it won't allow me to hide the query's.

Anybody have any ideas?
There are a few options. By selecting the properties of the query you can change them to hidden, however certain actions have been known to unhide queries and tables, also if the users has "view Hidden Controls" selected it will be useless.

Second option is two fold. Use the switchboard, which is found in a few different sections based on what version of access you have. 2000 and later should be located in Tools > Database Utilities > Switchboard Manager
This will make a control panel of sorts that you can have load on startup Tools > Startup

As for creating the security of the switchboard, you have two options, either edit the form template to not display the close buttons, and have the form maximize. Follow up on this by creating a small transparent close button. Otherwise you can deselct a few options in startup as well. If you deselect "Display Database Window" along with the switchboard, most users will only have access to what you put in the switchboard. Once this is done you will need to know a few Overrides to get in yourself.
F11 = Display the Database Window
Hold shift during bootup = will completely bypass all startup options

Combine these with a secure DB and you have almost Total control over who has what access (and thus who can break) to your DB
Oct 22 '07 #2
FishVal
2,653 Expert 2GB
Hi, there.

What about simple locking db with password?
Oct 22 '07 #3
Thanks for the quick response guys. The problem i have run into is that there are a bunch of people that need to get into the database, and most of them know that you can hold the shift key down to bypass all startup commands. Also i have discovered that people will just create a new database, and import everything, which more or less gives them full access. I got around this by hiding the tables through the code i showed earlier. This makes it where you can't see the table, or import the table from another database, however when i tried to do the same with the query, it wouldn't let me do it. I was hoping there was a way to hide the query's in the same way i hid the tables. I haven't put a database password on it because i didn't want to log in everytime i wanted to make an update to the database. Recently i've had to make updates to it daily
Oct 22 '07 #4
Curben
47
Thanks for the quick response guys. The problem i have run into is that there are a bunch of people that need to get into the database, and most of them know that you can hold the shift key down to bypass all startup commands. Also i have discovered that people will just create a new database, and import everything, which more or less gives them full access. I got around this by hiding the tables through the code i showed earlier. This makes it where you can't see the table, or import the table from another database, however when i tried to do the same with the query, it wouldn't let me do it. I was hoping there was a way to hide the query's in the same way i hid the tables. I haven't put a database password on it because i didn't want to log in everytime i wanted to make an update to the database. Recently i've had to make updates to it daily
Most of this could be resolved with the appropriate security settings. While shift may get past startup, it isnt as easy to bypass access security. If you setup security the right way it is able to deny a few of the things your users are doing. Also, with security, if you wish you can create a shortcut that includes your username and password to log you in directly (assuming you are not using a shared workstation)

Use this as the example target in your shortcut
Expand|Select|Wrap|Line Numbers
  1. "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" "\\127.0.0.1\CompanyServer\Project\Project.mdb" /wrkgrp "\\127.0.0.1\CompanyServer\Poject\ProjectFiles\Security\Project_SEC.mdw" /User "Itsme" /Pwd "Letmein"
If you need clarification let me know
Oct 22 '07 #5
missinglinq
3,532 Expert 2GB
This sounds like more of a policies thing than security!

First, why in the world do the people that "need access" to this database feel the need to import everything into thier own database rather than use the etstablished db? Are they having trouble gaining access? Do you need to split it into a front/end backend app so that multiple users can use it at the same time? Is it running unusually slow?

Secondly, a corporate database is a corporate asset; people doing unauthorized things to it, including importing objects into their "own" database, are misusing those assets! It's no different than taking a company vehicle for an unauthorized spin to Vegas for the weekend, and should be dealt with in the same way!

Ultimately, if your users have the talent, little you can do will keep them from messing around in your database. What man can devise man can hack! The answer lies, I think, in resolving the issues that underline the problem and/or letting it be known that unauthorized use is against company policy and will be dealt with accordingly.

Welcome to TheScripts!

Linq :0)>
Nov 28 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Les Juby | last post by:
I have a customer with an extensive intranet which contains a lot of sensitive company data. The client is concerned that any employee could download source code back to removable storage and...
1
by: Jacky11 | last post by:
Can anyone help me? Please see the code I'm using now. Public Function sheetlayout() On Error GoTo Err_Command1_Click Dim xl As Object Set xl = GetObject("c:\windows\desktop\123.csv")...
2
by: Noloader | last post by:
Hello, Access XP, SQL Server 2000 Is it possible to hide a SP under Queries in Access, yet still be able to Execute it from Access? (Similar to hiding Tables, then using Views) We hooked...
6
by: Marcus | last post by:
Is there a way to hide columns in a query? If so, where would I find some sample code on this topic? If this can be done, is it better to hide columns in a query, or simply build a second query...
3
by: Red | last post by:
I have a hyperlink the is "http://www.mysite.com?feild1=hello&field2=goodbye" how can i hide the variables being passed to the next page so that all that is displayed to the user is...
9
by: bob | last post by:
Hi, I know there exists a good reason why the designers of c++ decided that function hiding should exist. But I don't know why. Can anybody provide a good reason/example of a case where function...
3
by: G Gerard | last post by:
Hello I am using MSACCESS 2000 I can hide Tables from appearing in the Database Window with the following code: For Each tbldef in MyDB.TableDefs tbldef.Attributes = dbHiddenObject Next...
5
by: BA | last post by:
Hi there I am trying to write an "application" in Access 2000, that displays a front end and allows the user to interact with the database without seeing Access loaded, in the background, nor on...
162
by: Sh4wn | last post by:
Hi, first, python is one of my fav languages, and i'll definitely keep developing with it. But, there's 1 one thing what I -really- miss: data hiding. I know member vars are private when you...
103
by: chochote | last post by:
Hi, I have a PHP script that does some processing, and stores an error message as a variable. The script then redirects to another script with the error string in the URL, with the second script...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.