PC Review


Reply
Thread Tools Rate Thread

Display values of a field in the Form

 
 
=?Utf-8?B?c3RldmU=?=
Guest
Posts: n/a
 
      22nd Sep 2007
How can I get one field in a form to display the values that corrosponds to
another field in the same form. The fields I have are "Class" & "Students",
how can I get the field "Students" to display the name of the students of a
class once the class name is selected in the "Class" field? Any help will be
greatly appreciated.
Steve
 
Reply With Quote
 
 
 
 
Rick Brandt
Guest
Posts: n/a
 
      22nd Sep 2007
steve wrote:
> How can I get one field in a form to display the values that
> corrosponds to another field in the same form. The fields I have are
> "Class" & "Students", how can I get the field "Students" to display
> the name of the students of a class once the class name is selected
> in the "Class" field? Any help will be greatly appreciated.
> Steve


This makes no sense in the context of a properly designed database. Classes
should be listed in one table and students in another. There should never be a
"field" that displays more than one student's name since a field should only
ever contain a single value.

I would envision a Classes form based on a Classes table having a subform for
Students based on a Students table. Then as you look at each Class record the
students enrolled in that class would be shown in the subform. Since this is a
Many to Many relationship you could also have another form/subform where the
parent/child entities are reversed so that looking at any one student record
would display all of the classes they are enrolled in.

An intermediate table (Enrollment) would be used to associate students and
classes since each class can have multiple students and each student can enroll
in multiple classes. This means you need at least three tables.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Not display repeated values in a field Sheila D Microsoft Access Reports 2 1st Jul 2008 04:58 PM
Display values from 1st and 2nd field =?Utf-8?B?TGFEZEll?= Microsoft Access 3 29th Sep 2007 07:28 PM
how to sum two form field values and display it in another field =?Utf-8?B?eW91c3NlZg==?= Microsoft Frontpage 2 30th May 2007 01:43 AM
Can you persist table cell values like you do with form field values? Richard Dixson Microsoft ASP .NET 2 18th May 2004 02:11 PM
Can you persist table cell values like you can do with form field values? Richard Dixson Microsoft ASP .NET 1 18th May 2004 04:47 AM


Features
 

Advertising
 

Newsgroups
 


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