A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Form and Subform for single ID



 
 
Thread Tools Display Modes
  #1  
Old January 29th, 2010, 06:13 AM posted to microsoft.public.access.forms
forest8
external usenet poster
 
Posts: 196
Default 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  
Old January 29th, 2010, 07:34 AM posted to microsoft.public.access.forms
Allen Browne
external usenet poster
 
Posts: 11,706
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:01 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.