Advice on Database format

Dowsey1977

Board Regular
Joined
Apr 6, 2004
Messages
185
Hi,

I have a database which has currently got just 2 tables and 2 forms in it. 1 table/form has person data in it, the other table/form has information about access rights in it.

What I want is a subform that I can put on the person form to show what groups they belong to for access rights. There are 3 main groups for access rights witha bunch of more specific access levels within each group.

What I am asking for is advice on how to setup the database to be able to do that. Currently I have nothing that relates a person to a group, so really the setup is from scratch.

Any ideas?
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
In your group table put in new field for "Person" make it a number type.

Now take your form for Persons in design view shrink the window so you can se the DB window, click and drag the Group table to the detail area of the person form. This will activate the subform wizard, here (define your own) and select the personID from the person table and the Person field from the Group table.

I re-read the post a few times and I keep changing my mind, so the above will help you create a subform but also consider some changes, not sure if other will agree but lets see.

It seems like you should have an "Access Rights" table and an Access level table and also a USERDetail table. The user detail will look up the records from the other 2 so you can select the Access rights and the levels as you say that they can have more than one level.

The User table will have a Person field as I indicated above (also its own ID for the details).

Tables like:

AccessRightID
RightDecrip


AccessLevelID
AccessDescrp


UserDetailID
AccessLevel (lookup)
AccessRight (lookup)
Person (numberType)


PersonID
Person DetailsEtc...


Hope it makes sense :rolleyes:
 
Upvote 0
Fair enough - wasn't too sure on the answer, but moved on now.

I have managed to build a sub-form based on 1 query, so the form only shows access rights for the user on the record shown. However, I have 2 queries that I want to be shown in the 1 subform. Can this be done?

Also, there are several text boxes in the subform and they are not all used for every record. Is there anyway to get the 2nd query to populate from the next blank text box on the subform?

OR

Is there anyway to do a drop down box that will give the 2 area, i.e. Comms or ProgLib, and then the relevant subform is shown (i.e. from the 2 queries)

Any help would be great!
 
Upvote 0
I sent you my e-mail in a PM if you send me an e-mail I will send back a sample DB. I can't attach it here.


You can use Join Queries to combine tables/queries by linking their related fields.

I use Access 2000 if you have 2000 or newer you can open it. if you have 97 le me kow and I will make it up in 97.


Ziggy
 
Upvote 0

Forum statistics

Threads
1,221,771
Messages
6,161,847
Members
451,723
Latest member
Rachetsely

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top