How should I manage this data with relationships?

pixelkicker

New Member
Joined
May 5, 2014
Messages
13
Hello everyone, thanks for taking the time to read my question!

Scenario (access 2010):

Two tables, tblPersonnel and tblFitness.

tblPersonnel contains basic personnel information. The fields of concern are:
PID (unique personnel ID, primary key)
Last Name
First Name
Rank
Squadron
tblFitness is managed by a different user who only needs to know about fitness tracking of the personnel which is one reason we have seperated this data into two tables. The fields are:
PID (should correspond to their personnel record)
Last Test
Due Date
Score
Current (check box)
Exempt (yes/no)
Fitness Level
So my question is wouldn't you do a one-to-one relationship here since there is only one personnel record for each person (PID) and only one fitness record for each person? Also, I'm unsure how I should technically DO this. Besides setting the relationship how would the table be updated from a form? Would the fitness monitor be able to select a name from a drop down and add fitness data that way? Would I start by "pulling" over the data for each PID into the empty fitness tbl? Any guidance is appreciated! Thanks!!

:)
 
btw, a great way to manage security, especially since you have sensitive fields in their own table(s) is to put them in their own back-end ... in a directory where only the group that should see the data has network privileges to see it. Network security works great with Access. When users open a form they don't have rights to see data for, it is blank.

you will, of course, have to ensure referential integrity yourself as only simple relationships, which are really just visual lines for the user, can be created on tables in different files
 
Last edited:
Upvote 0

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
make a subform the same way you would make a regular form

keep in mind which fields you will use to link and make sure they are IN controls on the form. Your link field is PID. You can set Visible = No

once this form is done, save it and close it.

Now open the form to be the mainform in design view.

Drag the (sub)form you just made from the navigation pane onto the (main)form. Ensure that LinkChildFields and LinkMasterFields (DATA tab of Property Sheet) are set to PID for the subform control.

First click on a subform control selects the container for the form, not the form itself. this would be where it is, how big it is, etc

Second click on a subform control gets you INTO the control ... to the form it contains.


This worked!! Thank you so much :)

This board has been so nice and helpful! Ya'll rock! :)
 
Upvote 0

Forum statistics

Threads
1,216,174
Messages
6,129,297
Members
449,499
Latest member
HockeyBoi

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