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

Make form uneditable based upon Access login group

There doesn't seem to be a way to do this. The Access security model seems
to be based around allowing the users to read/alter design of the form
(where reading includes editing the data)

I want to allow certain users (well, a member of a certain group) - and I'm
talking about mdw users and groups here to be able to edit (or not) data on
a form. But still be able to view the data even if they can't edit it, er,
them.

Is this going to be: get the users group on the load/got focus of the form,
and if they're in the right group unlock it otherwise lock it?

Yours, Mike MacSween
Nov 13 '05 #1
8 1979
Why, aren't there read and write rules for tables as well?

Mike MacSween wrote:
There doesn't seem to be a way to do this. The Access security model seems
to be based around allowing the users to read/alter design of the form
(where reading includes editing the data)

I want to allow certain users (well, a member of a certain group) - and I'm
talking about mdw users and groups here to be able to edit (or not) data on
a form. But still be able to view the data even if they can't edit it, er,
them.

Is this going to be: get the users group on the load/got focus of the form,
and if they're in the right group unlock it otherwise lock it?

Yours, Mike MacSween


--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html
For human replies, replace the queue with a tea

Nov 13 '05 #2
"Bas Cost Budde" <b.*********@heuvelqop.nl> wrote in message
news:da**********@localhost.localdomain...
Why, aren't there read and write rules for tables as well?
Yes, but there don't seem to be for forms.

Mike
Mike MacSween wrote:
There doesn't seem to be a way to do this. The Access security model
seems to be based around allowing the users to read/alter design of the
form (where reading includes editing the data)

I want to allow certain users (well, a member of a certain group) - and
I'm talking about mdw users and groups here to be able to edit (or not)
data on a form. But still be able to view the data even if they can't
edit it, er, them.

Is this going to be: get the users group on the load/got focus of the
form, and if they're in the right group unlock it otherwise lock it?

Yours, Mike MacSween


--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html
For human replies, replace the queue with a tea

Nov 13 '05 #3
I may misunderstand the question. If you enable read rights on a table
for certain groups, and add write rights for another, in any form based
on that table the rights will be applied, right? You don't have to
bother with form rights in order to set table access. IME, that is.

Mike MacSween wrote:
"Bas Cost Budde" <b.*********@heuvelqop.nl> wrote in message
news:da**********@localhost.localdomain...
Why, aren't there read and write rules for tables as well?

Yes, but there don't seem to be for forms.


--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html
For human replies, replace the queue with a tea

Nov 13 '05 #4
"Bas Cost Budde" <b.*********@heuvelqop.nl> wrote in message
news:da**********@localhost.localdomain...
I may misunderstand the question. If you enable read rights on a table for
certain groups, and add write rights for another, in any form based on that
table the rights will be applied, right? You don't have to bother with form
rights in order to set table access. IME, that is.
Yes. The form is for courses. One form creates new courses. I want several
of the users to be able to create new courses, and in the course of creating
those courses change details, at the point of creation. For instance they
might create a course as a Coronary Heart Disease course, in error, and
realize it should be a Diabetes course. So they'll need read/write rights on
the table. But once the course has been created I want a far smaller number
of users to have the right to edit details, and delete the course, via this
other form. There's some cascading deletes going on that I want only a small
number of users to be able to initiate. That's why the table rules won't do
exactly what I want here.

Of course perhaps I ought to just consider setting the rights on the BE
tables with a finer level of granularity. Which I'm thinking about now.

Cheers, Mike

Mike MacSween wrote:
"Bas Cost Budde" <b.*********@heuvelqop.nl> wrote in message
news:da**********@localhost.localdomain...
Why, aren't there read and write rules for tables as well?

Yes, but there don't seem to be for forms.


--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html
For human replies, replace the queue with a tea

Nov 13 '05 #5
> Yes. The form is for courses. One form creates new courses. I want several
of the users to be able to create new courses, and in the course of creating
those courses change details [...] But once the course has been created
I want a far smaller number of users to have the right to edit details
I see. That would be hard to effect via table rules.

If you can live with the fact that bypassing the forms would allow any
user any change, you could effect some security manually. I have spent
significant effort in that direction, and it certainly can be done.

You must have a table structure for your user/group members, and
settings maybe per table, maybe just for this instance. I'd use the
BeforeInsert event to loosen the restraints for a new record, and
AfterInsert to tighten them. Activate can be the spot to set general
rights, derived from the user/group structure. Or probably just the Load
event.
Of course perhaps I ought to just consider setting the rights on the BE
tables with a finer level of granularity. Which I'm thinking about now.


If that provides you with sufficient functionality, it's the way I'd
recommend. I chose the word 'significant' above deliberately...
--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html
For human replies, replace the queue with a tea

Nov 13 '05 #6
Bri
Mike MacSween wrote:
Yes. The form is for courses. One form creates new courses. I want several
of the users to be able to create new courses, and in the course of creating
those courses change details, at the point of creation. For instance they
might create a course as a Coronary Heart Disease course, in error, and
realize it should be a Diabetes course. So they'll need read/write rights on
the table. But once the course has been created I want a far smaller number
of users to have the right to edit details, and delete the course, via this
other form. There's some cascading deletes going on that I want only a small
number of users to be able to initiate. That's why the table rules won't do
exactly what I want here.

Of course perhaps I ought to just consider setting the rights on the BE
tables with a finer level of granularity. Which I'm thinking about now.

Cheers, Mike


Mike,

Change the rights on the Tables to no rights of any kind, then create
saved queries for the two different forms and set the appropriate rights
on each of the queries.

--
Bri

Nov 13 '05 #7
Bri


Bri wrote:
Mike MacSween wrote:
Yes. The form is for courses. One form creates new courses. I want
several of the users to be able to create new courses, and in the
course of creating those courses change details, at the point of
creation. For instance they might create a course as a Coronary Heart
Disease course, in error, and realize it should be a Diabetes course.
So they'll need read/write rights on the table. But once the course
has been created I want a far smaller number of users to have the
right to edit details, and delete the course, via this other form.
There's some cascading deletes going on that I want only a small
number of users to be able to initiate. That's why the table rules
won't do exactly what I want here.

Of course perhaps I ought to just consider setting the rights on the
BE tables with a finer level of granularity. Which I'm thinking about
now.

Cheers, Mike

Mike,

Change the rights on the Tables to no rights of any kind, then create
saved queries for the two different forms and set the appropriate rights
on each of the queries.

--
Bri


Oops, spoke too soon. OK, here's another idea. Do as above (ie deny
rights to tables, create the queries), but make them WITH OWNERACCESS
OPTION. Then create two new UserIDs that won't actually be used by
anyone. Give these UserIDs permissions to the tables as appropriate for
the two forms (one each). Then change the owner of each query to the
appropriate UserID. The Query then will have the rights assigned to the
User that is now the Owner of it. I bit fiddly, but should work.

--
Bri
Nov 13 '05 #8
Bri


Bri wrote:


Bri wrote:
Mike MacSween wrote:
Yes. The form is for courses. One form creates new courses. I want
several of the users to be able to create new courses, and in the
course of creating those courses change details, at the point of
creation. For instance they might create a course as a Coronary Heart
Disease course, in error, and realize it should be a Diabetes course.
So they'll need read/write rights on the table. But once the course
has been created I want a far smaller number of users to have the
right to edit details, and delete the course, via this other form.
There's some cascading deletes going on that I want only a small
number of users to be able to initiate. That's why the table rules
won't do exactly what I want here.

Of course perhaps I ought to just consider setting the rights on the
BE tables with a finer level of granularity. Which I'm thinking about
now.

Cheers, Mike


Mike,

Change the rights on the Tables to no rights of any kind, then create
saved queries for the two different forms and set the appropriate
rights on each of the queries.

--
Bri

Oops, spoke too soon. OK, here's another idea. Do as above (ie deny
rights to tables, create the queries), but make them WITH OWNERACCESS
OPTION. Then create two new UserIDs that won't actually be used by
anyone. Give these UserIDs permissions to the tables as appropriate for
the two forms (one each). Then change the owner of each query to the
appropriate UserID. The Query then will have the rights assigned to the
User that is now the Owner of it. I bit fiddly, but should work.

--
Bri


Double oops. In your second thread, Joan Wild pointed out that my first
idea here was close. Set the required permissions on the query, no
rights to tables, query is a RWOP query owned by ID that has rights to
the tables. Tested it and it works.

--
Bri
Nov 13 '05 #9

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

Similar topics

2
by: Sylvie Stone | last post by:
Hi group - I have an html form for that uses username and password to login to a specific area of the website. The "area" the user wants to go to is based on a pull down menu. Becasue the...
6
by: John | last post by:
Just a general question... I'm currently using a combobox that when updated, opens a form with its recordset based on a query using the combo box value as the criteria. I'm I correct in...
5
by: calaha | last post by:
Hi all, I have been working with this since last night, and can't quite figure out why it's not working. I have a simple login box form that is set to be my startup form in my Access app (upon...
3
by: Mike | last post by:
Hello: I was not able to find a regular ASP group, so I posted this here instead. I have a web app which is actually just ASP using VBScript as the server-side language, running on IIS6. ...
10
by: jpatchak | last post by:
Hello all, I recently tried upsizing a DB with the Access Upsizing Wizard. I ran into the standard problems with datatypes and have to rebuild some queries that didn't get upsized. I am having a...
1
by: maflatoun | last post by:
Hi, We have a form based authentication implemented on our site that has been working great for over 2 years for oursite.com, oursite.ca and oursite.co.uk. However, today I found out that...
13
JodiPhillips
by: JodiPhillips | last post by:
G'day, I have a silly and simple problem that I need some guidance with. Due to the way our network is set up, I am unable to use the group permissions for Access and have had to implement log...
0
by: squig9 | last post by:
Hello, I am am trying to come up with a way of securing controls inside of a VB.Net 2005 application. I have searched and found information on Window Security but it all seemed based on ASP.Net. I...
5
by: caconklin | last post by:
Access 2003, Windows XP. Currently I am able to open a form - case form - based upon information input by the user in another form - search form. I would like to be able to open the case form...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.