If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Form and Subform for single ID
Hi
I am in the process of creating a Case Management database. Every week, a coach meets with the students for Case Management purposes. When the youth becomes involved in Case Management, they complete surveys at 6 months intervals. I also have several tables (forms) which are based on survey questions which must be completed at six months intervals. The main youth form is in the Participant table (there is YouthID is the PK). I have created a One-to-Many relationship between this table and the survey tables but there is no referential integrity since I have more youths in the Participants table than Survey tables. (At the moment, no additional surveys have been inputted for any of the participants). The questions on the survey are the same. For instance, one of the questions is: Please describe your relationship with your mother, father, brother(s), sister(s), etc. I want to create a form which provides the responses for each youth for six month interval that may be updated at any time. That is, this form would have the youth's responses from all completed surveys so that the coach can see how the youth responded previous to the questions and whether it's changed during the non-survey time periods. (I hope that makes sense). So the Parent Form has the weekly updates and the subforms have the survey responses. How would I create this so that only the information for the youth in question is in the subform? The subforms aren't "talking" to the main form. Thank you in advance. (Sorry for the convoluted question). Every wee |
#2
|
|||
|
|||
Form and Subform for single ID
The answer to your question is that you will you need to use the Link Master
Fields and Link Child Fields properties of the subform control so the subform records are only those for the YouthID in the main form. Before you can design this form, you will need a good table design to handle all the one-to-many relationships in this data, *with* referential integrity. Note that enforced RI does not mean every student must have a survey; it means that you can have a survey for a YouthID that's not a valid person, i.e. if there's no 987 in the Participant table, then you can't have a survey for person 987.) For a (free) sample database on how to do surveys, see this one from Duane Hookom: http://www.rogersaccesslibrary.com/f...osts.asp?TID=3 -- Allen Browne - Microsoft MVP. Perth, Western Australia Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org. "forest8" wrote in message ... I am in the process of creating a Case Management database. Every week, a coach meets with the students for Case Management purposes. When the youth becomes involved in Case Management, they complete surveysat 6 months intervals. I also have several tables (forms) which are based on survey questions which must be completed at six months intervals. The main youth form is in the Participant table (there is YouthID is the PK). I have created a One-to-Many relationship between this table and the survey tables but there is no referential integrity since I have more youths in the Participants table than Survey tables. (At the moment, no additional surveys have been inputted for any of the participants). The questions on the survey are the same. For instance, one of the questions is: Please describe your relationship with your mother, father, brother(s), sister(s), etc. I want to create a form which provides the responses for each youth for six month interval that may be updated at any time. That is, this form would have the youth's responses from all completed surveys so that the coach can see how the youth responded previous to the questions and whether it's changed during the non-survey time periods. (I hope that makes sense). So the Parent Form has the weekly updates and the subforms have the survey responses. How would I create this so that only the information for the youth in question is in the subform? The subforms aren't "talking" to the main form. |
Thread Tools | |
Display Modes | |
|
|