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

checkbox query

I am trying to create a time tracking database that allows an "admin"
to grant user permissions. When a new user is entered into the
database, their first and last name are entered. Then below, via
checkbox, they are givin Read, Write, Delete, Create permissions. All
these criteria are selected for 3 different departments.

department1read, department1write, department1delete, department1create
department2read, department2write, department2delete, department2create
department2read, department2write, department2delete, department2create
When I go to create an assignment, I enter all the information
in...Name, description, etc. I also, again via checkbox, select which
departments can view this assignment

department1view
department2view
department3view

Lets use department2 as an example. Now if I have a list off all the
assignments to be done, with their corresponding view permissions, how
would I write the query so only those show up whos user permissions
allow them to view department2 and the assignment allows
department2view.

But, if someone does not have "department2read" checked, they cannot
view these.

Does this make sense?

Brad

Apr 25 '06 #1
2 2357
"Drum2001" <dr******@gmail.com> wrote in message
news:11*********************@t31g2000cwb.googlegro ups.com...
I am trying to create a time tracking database that allows an "admin"
to grant user permissions. When a new user is entered into the
database, their first and last name are entered. Then below, via
checkbox, they are givin Read, Write, Delete, Create permissions. All
these criteria are selected for 3 different departments.

department1read, department1write, department1delete, department1create
department2read, department2write, department2delete, department2create
department2read, department2write, department2delete, department2create
When I go to create an assignment, I enter all the information
in...Name, description, etc. I also, again via checkbox, select which
departments can view this assignment

department1view
department2view
department3view

Lets use department2 as an example. Now if I have a list off all the
assignments to be done, with their corresponding view permissions, how
would I write the query so only those show up whos user permissions
allow them to view department2 and the assignment allows
department2view.

But, if someone does not have "department2read" checked, they cannot
view these.

Does this make sense?

Brad


You can do it by using a WHERE clause in a select query but I think you're
making a huge administrative headache for yourself in persuing this method
because, as your app grows, so will the admin overhead. Access has its own
built-in user-level security (ULS) which, although flawed, is head and
shoulders above any 'roll your own' method. The downside is that it takes
time to learn and can be frustrating until the penny drops, but once it
does, you can set user permissions as appropriate and use the CurrentUser
property to determine who is logged on and fine-tune as necessary.

If you choose the ULS route be sure to read the MS FAQ on the subject (link
on my web site) and to always work on a copy of your files in case you lock
yourself out.

Regards,
Keith.
www.keithwilby.com
Apr 25 '06 #2
I did this once. Essentially I had several checkboxes where I could
select which department and apps within that department a user could
use.

You have to set up your queries properly to do this. All queries MUST
have criteria that select the security level. I believe we wrote the
security level on launch to a hidden field on the main menu, but with
the current version of Access you can pass it using the OpenArgs
property also. Then your queries check the user and their security
level and if they aren't allowed then no records are going to get
returned by your queries.

http://www.eyesoft.net

Apr 25 '06 #3

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

Similar topics

4
by: Jay | last post by:
Hi everybody ! I am currently writing a webpage that displays a list of records ( each record has a checkbox associated with it) to allow users to select any record they want to delete (much...
6
by: Angelos | last post by:
I have this list of logs stored in a MySQL DB. I display them in a list and next to each log I have a del view LINK I want to add Checkboxes next to each log and keep del and view links as...
4
by: Shufen | last post by:
Hi, I'm a newbie that just started to learn python, html and etc. I have some questions to ask and hope that someone can help me on. I'm trying to code a python script (with HTML) to get...
4
by: Bill | last post by:
I have a catalog of books which need to be categorized into different groups. Some of the books can be listed under more than one category. I'm creating a page where I can assign a group of books...
4
by: Bee | last post by:
Hi everyone, I'm having trouble accessing a Mysql database containing checkbox data that is posted from a form. I use the serialize function to store the checkbox values in an array (in a column...
6
by: Megan | last post by:
Hi everybody- I'm trying to use a checkbox to control whether or not a date field in a query "Is Null" or "Is Not Null." I have 2 date fields: InDate and OutDate. If there is an OutDate, then...
5
by: sanchs | last post by:
I have created an inventory database in Microsoft Access 2003. In my assets form, I have a checkbox for cannibalized computers. I would like to be able to put a check in that checkbox and have...
8
by: Sid | last post by:
I hope someone could help me with this. I am trying to setup a criteria to decide when to allow/not allow user to click on the check box. logically it looks simple but I am not able to...
11
by: =?Utf-8?B?UGFyYWcgR2Fpa3dhZA==?= | last post by:
Hi All, I have a large recordset to be displayed on a ASP 3.0 page. I am using recordset paging for this. For the next and previous link i am passing href as <a href=<Page URl>?page=<%=...
11
by: TechnoAtif | last post by:
INSERT AND UPDATE MULTIPLE CHECKBOX DATA USING PHPMYSQL OR JAVASCRIPT Hi All I want to check the multiple checkboxes update them after revisiting that page. I am taking the name as...
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:
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.