Ask Experts Questions for FREE Help !
Ask
    Heisenberg's Avatar
    Heisenberg Posts: 7, Reputation: 1
    New Member
     
    #1

    Nov 30, 2014, 03:39 AM
    Microsoft access 2010 - relationship design issue
    Hi

    Please can some help me with this relationship design problem - it really has me stumped!

    Here is what I am trying to get the design to do for me:

    • I have 200-300 students that as part of their course need to complete practice placements
    • These students go to different placements during the duration of their course
    • They are assigned a mentor in each area they attend
    • Mentors can mentor more than 1 students (I think I need a many to many relationship for this but I can't figure this out)
    • A PLT/ facilitator is assigned to each area to which they are responsible for ( this changes sometimes so not sure if it would be best keeping this on a word document instead)


    It's just this relationship design I'm struggling with - please can someone help.

    Daniel
    Attached Images
  1. File Type: pdf Report2.pdf (97.0 KB, 129 views)
  2. ScottGem's Avatar
    ScottGem Posts: 64,966, Reputation: 6056
    Computer Expert and Renaissance Man
     
    #2

    Nov 30, 2014, 07:13 AM
    Ok, Yes you have a many to many between students and mentors. But your table; tblStudent Placement Attendance seems to cover it. It would need one record per combination of student area and mentor. So mentorID would be a foreign key in that table.

    No you don't need a Word doc, you either keep a record for each change or edit the record is you don''t need a history.
    Heisenberg's Avatar
    Heisenberg Posts: 7, Reputation: 1
    New Member
     
    #3

    Nov 30, 2014, 01:33 PM
    Hi Scott

    Am I right in that from what you're saying the relationships are already correct? So in theory I should now be able to make multiple records linking students to a mentor - am I right?

    Really appreciate you help with this as it will save me lots of time from using a spreadsheet. Thanks again with the last few answers on AskExperts.

    Daniel
    ScottGem's Avatar
    ScottGem Posts: 64,966, Reputation: 6056
    Computer Expert and Renaissance Man
     
    #4

    Nov 30, 2014, 07:37 PM
    Once you make the change to include a single record per combination as I suggested, I think you do have your relationships correct.

    To enter the data you will need to use forms and subforms.
    Heisenberg's Avatar
    Heisenberg Posts: 7, Reputation: 1
    New Member
     
    #5

    Dec 1, 2014, 08:44 AM
    Hi Scott

    When you say single record per combination, what do you mean? Do you mean when the mentor field in the student placement table is the foreign key as I think this is already set.
    ScottGem's Avatar
    ScottGem Posts: 64,966, Reputation: 6056
    Computer Expert and Renaissance Man
     
    #6

    Dec 1, 2014, 12:32 PM
    Initially, you had the field in that table named Mentors. That implied that you might have one record with several mentors. What I'm saying is that the combination of area, student and mentor should be unique.
    Heisenberg's Avatar
    Heisenberg Posts: 7, Reputation: 1
    New Member
     
    #7

    Dec 2, 2014, 11:11 AM
    Hmm is it possible you could have a quick look for me - I've attached the database as this might make easier for me to understand.

    Really sorry for being a pain but I appreciate your advice.
    Attached Files
  3. File Type: zip Students Database - Copy - Copy.zip (634.9 KB, 39 views)
  4. ScottGem's Avatar
    ScottGem Posts: 64,966, Reputation: 6056
    Computer Expert and Renaissance Man
     
    #8

    Dec 2, 2014, 12:43 PM
    Your not being a pain, I will take a look as soon as I can.
    ScottGem's Avatar
    ScottGem Posts: 64,966, Reputation: 6056
    Computer Expert and Renaissance Man
     
    #9

    Dec 3, 2014, 06:35 AM
    OK, I took a look and I'm not sure what I'm supposed to be looking for. The attachment didn't include the Placement Attendance table we've been talking about.

    But I do see some issues. First, don't just accept the default name for your Autonumber PKs. I always name my PKs so they refer to the table. For example, MentorID. Then make your Foreign Keys the same name. Makes it easier to spot relationships. Second, Do not use spaces in object names, This will come back to haunt you. Use either underscores or CamelNotation. Also don't use special characters like / or -. You can use the Caption property to display the spaces and characters. Third, in one table you have Address line 1 & 2. but you don't in the other tables. You should be consistent. Because Access can store a line feed within a field, I don't see any need for multiple lines. So one StreetAddress field should be enough.

    Finally, your Special Circumstances field. Using lookup fields on the table level is not recommended. And the only time you should use a Value list is when you have a short, static list of selections. I'm not sure what you are planning for Special Circumstances, but you should probably have a lookup table for them and a junction table to assign them to a student.
    Heisenberg's Avatar
    Heisenberg Posts: 7, Reputation: 1
    New Member
     
    #10

    Dec 3, 2014, 12:06 PM
    Hi Scott

    Thank you for having a look for me. The placement attendance table which we have been discussing is called tbl studentplacementattendance, which links students, mentors and placements; because you mentioned that the combination of area, student and mentor should be unique, I just wanted you to have a look to see if this was right. You may need to click 'view all relationships' to see the seek linkage. This table was what were discussing? Or am I wrong?

    I have to admit I've heavily modified this from something else but as you mentioned it does need tweaking. I don't have any use for the special circumstances so will be deleting that.
    ScottGem's Avatar
    ScottGem Posts: 64,966, Reputation: 6056
    Computer Expert and Renaissance Man
     
    #11

    Dec 3, 2014, 12:45 PM
    Ok, I should have thought to hit Show all. So, again, If I understand that table, it shows each instance of the combination of Student, Area and Mentor. So if Student A attended Area 1, and worked with Mentor X, that would be one record. If the same student in the same area worked with Mentor Y, that would be another record.

    And to repeat I would name my Foreign Keys the same as my PKs. So in that table I would have AreaID instead of Placement Area and MentorID instead of Mentors.
    Heisenberg's Avatar
    Heisenberg Posts: 7, Reputation: 1
    New Member
     
    #12

    Dec 4, 2014, 02:50 AM
    That's right, that's what I am trying to achieve and hope that that table will be able to do that. The student will move to different areas also so I am hoping a new record will be made for this as I want a record of where the student has been in the past and where they are in the present. That table should be able to do this?Will follow your advice with consistency.
    ScottGem's Avatar
    ScottGem Posts: 64,966, Reputation: 6056
    Computer Expert and Renaissance Man
     
    #13

    Dec 4, 2014, 08:17 AM
    Yep, you add a record for each instance of the combination.
    Heisenberg's Avatar
    Heisenberg Posts: 7, Reputation: 1
    New Member
     
    #14

    Dec 4, 2014, 08:25 AM
    That's great :)Thanks again for your help and advice Scott with this - as well as the Askexperts website.
    I'd probably encounter all sorts of probs otherwise.

    Thank you pal
    ScottGem's Avatar
    ScottGem Posts: 64,966, Reputation: 6056
    Computer Expert and Renaissance Man
     
    #15

    Dec 4, 2014, 10:38 AM
    Glad to help. Feel free to ask if you encounter any more stumbling blocks.

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

My Microsoft Office 2010 Plus help screen does not display [ 0 Answers ]

When I click on help in Microsoft excel or word the I receive an error message, the message states: There is a problem with one or more help files. Please repair your office installation and try again. I have tried to repari my office installation and received the following message: Error 1310...

Microsoft Access 2010 IIF Function [ 18 Answers ]

The Subtotal field in my Expenses tbl contains the following expression: IIf(="Tuition/Fees" Or "Airfare" Or "Taxi" Or "Ground Transportation" Or "Registration Fee" Or "Miscellaneous" Or "Salary for the period",,(*)) However, it is not producing the result I need. The result from the...

Microsoft Word Starter 2010 [ 0 Answers ]

This came loaded on my new computer. Supposedly it's free because it has ads but... is this permanent or something temporary that I will be told I have to buy a little later on? I don't want to write documents with it that I won't be able to open down the road unless I buy.

Need help creating a relationship in Access 2010 [ 4 Answers ]

Hi all, I'm trying to build an access db (I don't know access very well) to keep track of my rechargeable batteries (geeky I know). Here are my tables: BatteryType: Just contains the different types of batteries available Inventory: contains batterytype, serial number, purchase date, etc...

Microsoft Word (form design) [ 2 Answers ]

Hello everyone, I'm a first timer. Form design in MS GOT ME PUZZLED TO NO END. I'm able to create a form-- but I cannot anchor the field in the proper location. Example of fields: Occupation: ____________________ Experience:_________________


View more questions Search