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 » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Need Designing Help



 
 
Thread Tools Display Modes
  #1  
Old November 6th, 2008, 09:16 PM posted to microsoft.public.access.tablesdbdesign
Confused
external usenet poster
 
Posts: 498
Default Need Designing Help

I'm trying to create a data base where the Record will consist of a form to
input data for a dance title, Included in that form I need to insert the
dance studio that will be performing that dance (that has a drop down menu to
pick from a list of dance studio) and then i need to add the names of
multiple students from a list from that studio only that will be in that
dance only. So i need to be able to chose from a list of students from that
dance studio. And i need to be able to chose multiple students for that
dance....i know i have to use sub-forms but i having a difficult time
designing this.
  #2  
Old November 6th, 2008, 09:33 PM posted to microsoft.public.access.tablesdbdesign
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Need Designing Help

Studio --
StudioID - autonumber - primary key
Name -
Addr
City
State
ZIP

Student --
StudentID - autonumber - primary key
LName
FName
Phone

DanceSession --
SessionID - autonumber - primary key
StudioID - number - long integer - foreign key
Type - Tango, Waltz, etc.
Day - Mon, Tues, Wed,

StudentSession --
StudentID - number - long integer - foreign key
SessionID - number - long integer - foreign key
Paid - Yes/No

Set one-to-many relationship from primary key to foreign keys.
--
KARL DEWEY
Build a little - Test a little


"Confused" wrote:

I'm trying to create a data base where the Record will consist of a form to
input data for a dance title, Included in that form I need to insert the
dance studio that will be performing that dance (that has a drop down menu to
pick from a list of dance studio) and then i need to add the names of
multiple students from a list from that studio only that will be in that
dance only. So i need to be able to chose from a list of students from that
dance studio. And i need to be able to chose multiple students for that
dance....i know i have to use sub-forms but i having a difficult time
designing this.

  #3  
Old November 7th, 2008, 03:44 PM posted to microsoft.public.access.tablesdbdesign
Klatuu[_3_]
external usenet poster
 
Posts: 396
Default Need Designing Help

Couple of observations, KARL.
You don't show any relation between student and a studio. As it is not
impossible a student could attend more that one studio, perhaps a junction
table to represent that relationship.

Also in the Dance Session table you have Type. There should be a Type table
and the Type field in the Dance Session table should be a foreign key to the
type table.

"KARL DEWEY" wrote in message
...
Studio --
StudioID - autonumber - primary key
Name -
Addr
City
State
ZIP

Student --
StudentID - autonumber - primary key
LName
FName
Phone

DanceSession --
SessionID - autonumber - primary key
StudioID - number - long integer - foreign key
Type - Tango, Waltz, etc.
Day - Mon, Tues, Wed,

StudentSession --
StudentID - number - long integer - foreign key
SessionID - number - long integer - foreign key
Paid - Yes/No

Set one-to-many relationship from primary key to foreign keys.
--
KARL DEWEY
Build a little - Test a little


"Confused" wrote:

I'm trying to create a data base where the Record will consist of a form
to
input data for a dance title, Included in that form I need to insert the
dance studio that will be performing that dance (that has a drop down
menu to
pick from a list of dance studio) and then i need to add the names of
multiple students from a list from that studio only that will be in that
dance only. So i need to be able to chose from a list of students from
that
dance studio. And i need to be able to chose multiple students for that
dance....i know i have to use sub-forms but i having a difficult time
designing this.



  #4  
Old November 7th, 2008, 04:52 PM posted to microsoft.public.access.tablesdbdesign
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Need Designing Help

I have the student related to Session and then to studio.
--
KARL DEWEY
Build a little - Test a little


"Klatuu" wrote:

Couple of observations, KARL.
You don't show any relation between student and a studio. As it is not
impossible a student could attend more that one studio, perhaps a junction
table to represent that relationship.

Also in the Dance Session table you have Type. There should be a Type table
and the Type field in the Dance Session table should be a foreign key to the
type table.

"KARL DEWEY" wrote in message
...
Studio --
StudioID - autonumber - primary key
Name -
Addr
City
State
ZIP

Student --
StudentID - autonumber - primary key
LName
FName
Phone

DanceSession --
SessionID - autonumber - primary key
StudioID - number - long integer - foreign key
Type - Tango, Waltz, etc.
Day - Mon, Tues, Wed,

StudentSession --
StudentID - number - long integer - foreign key
SessionID - number - long integer - foreign key
Paid - Yes/No

Set one-to-many relationship from primary key to foreign keys.
--
KARL DEWEY
Build a little - Test a little


"Confused" wrote:

I'm trying to create a data base where the Record will consist of a form
to
input data for a dance title, Included in that form I need to insert the
dance studio that will be performing that dance (that has a drop down
menu to
pick from a list of dance studio) and then i need to add the names of
multiple students from a list from that studio only that will be in that
dance only. So i need to be able to chose from a list of students from
that
dance studio. And i need to be able to chose multiple students for that
dance....i know i have to use sub-forms but i having a difficult time
designing this.




  #5  
Old November 10th, 2008, 02:42 PM posted to microsoft.public.access.tablesdbdesign
Klatuu[_3_]
external usenet poster
 
Posts: 396
Default Need Designing Help

I think that is incorrect. A student may be a student at a studio without
being assigned to a session. I would think that when constructing a
session, one might be looking for students from a specific studion.

But, we don't really know the business rules on this, so it could be either
way.


"KARL DEWEY" wrote in message
...
I have the student related to Session and then to studio.
--
KARL DEWEY
Build a little - Test a little


"Klatuu" wrote:

Couple of observations, KARL.
You don't show any relation between student and a studio. As it is not
impossible a student could attend more that one studio, perhaps a
junction
table to represent that relationship.

Also in the Dance Session table you have Type. There should be a Type
table
and the Type field in the Dance Session table should be a foreign key to
the
type table.

"KARL DEWEY" wrote in message
...
Studio --
StudioID - autonumber - primary key
Name -
Addr
City
State
ZIP

Student --
StudentID - autonumber - primary key
LName
FName
Phone

DanceSession --
SessionID - autonumber - primary key
StudioID - number - long integer - foreign key
Type - Tango, Waltz, etc.
Day - Mon, Tues, Wed,

StudentSession --
StudentID - number - long integer - foreign key
SessionID - number - long integer - foreign key
Paid - Yes/No

Set one-to-many relationship from primary key to foreign keys.
--
KARL DEWEY
Build a little - Test a little


"Confused" wrote:

I'm trying to create a data base where the Record will consist of a
form
to
input data for a dance title, Included in that form I need to insert
the
dance studio that will be performing that dance (that has a drop down
menu to
pick from a list of dance studio) and then i need to add the names of
multiple students from a list from that studio only that will be in
that
dance only. So i need to be able to chose from a list of students from
that
dance studio. And i need to be able to chose multiple students for
that
dance....i know i have to use sub-forms but i having a difficult time
designing this.






  #6  
Old November 10th, 2008, 07:38 PM posted to microsoft.public.access.tablesdbdesign
Evi[_3_]
external usenet poster
 
Posts: 19
Default Need Designing Help

The user said that a session is set up with students chosen from only one
studio.
What if we add to Karl's design (as I think he intended)

TblStudioStudent
StuStuID (primary key)
StudentID
StudioID


But I'm not sure about the next bit. Instead of having StuStuID as the
foreign key in the StudentSessionTable, how about going with Karl's design
and using this table only to filter the combo which allows the user to only
add students from that studio which appears in TblStudioSession so that
StudentID becomes the foreign key in TblStudentSession

Or would the student's name be enough to identify them?
If we need the Student AND the studio to identify the student, then we would
need to concatenate StudentAnd Studio in our combo and use StuStuID as the
foreign key in the StudentSession table.

Evi


"Klatuu" wrote in message
...
I think that is incorrect. A student may be a student at a studio without
being assigned to a session. I would think that when constructing a
session, one might be looking for students from a specific studion.

But, we don't really know the business rules on this, so it could be

either
way.


"KARL DEWEY" wrote in message
...
I have the student related to Session and then to studio.
--
KARL DEWEY
Build a little - Test a little


"Klatuu" wrote:

Couple of observations, KARL.
You don't show any relation between student and a studio. As it is not
impossible a student could attend more that one studio, perhaps a
junction
table to represent that relationship.

Also in the Dance Session table you have Type. There should be a Type
table
and the Type field in the Dance Session table should be a foreign key

to
the
type table.

"KARL DEWEY" wrote in message
...
Studio --
StudioID - autonumber - primary key
Name -
Addr
City
State
ZIP

Student --
StudentID - autonumber - primary key
LName
FName
Phone

DanceSession --
SessionID - autonumber - primary key
StudioID - number - long integer - foreign key
Type - Tango, Waltz, etc.
Day - Mon, Tues, Wed,

StudentSession --
StudentID - number - long integer - foreign key
SessionID - number - long integer - foreign key
Paid - Yes/No

Set one-to-many relationship from primary key to foreign keys.
--
KARL DEWEY
Build a little - Test a little


"Confused" wrote:

I'm trying to create a data base where the Record will consist of a
form
to
input data for a dance title, Included in that form I need to

insert
the
dance studio that will be performing that dance (that has a drop

down
menu to
pick from a list of dance studio) and then i need to add the names

of
multiple students from a list from that studio only that will be in
that
dance only. So i need to be able to chose from a list of students

from
that
dance studio. And i need to be able to chose multiple students for
that
dance....i know i have to use sub-forms but i having a difficult

time
designing this.







  #7  
Old November 11th, 2008, 07:40 PM posted to microsoft.public.access.tablesdbdesign
Klatuu[_3_]
external usenet poster
 
Posts: 396
Default Need Designing Help

The user said that a session is set up with students chosen from only one
studio

Then there does need to be some way to relate a student to a studio.
If the student can belong to one and only one studio, an foreign key the the
studio table will suffice; however, if a student can be associated with more
than one studio, the junction table I recommened previously will be
necessary.
'
"Evi" wrote in message
...
The user said that a session is set up with students chosen from only one
studio.
What if we add to Karl's design (as I think he intended)

TblStudioStudent
StuStuID (primary key)
StudentID
StudioID


But I'm not sure about the next bit. Instead of having StuStuID as the
foreign key in the StudentSessionTable, how about going with Karl's design
and using this table only to filter the combo which allows the user to
only
add students from that studio which appears in TblStudioSession so that
StudentID becomes the foreign key in TblStudentSession

Or would the student's name be enough to identify them?
If we need the Student AND the studio to identify the student, then we
would
need to concatenate StudentAnd Studio in our combo and use StuStuID as the
foreign key in the StudentSession table.

Evi


"Klatuu" wrote in message
...
I think that is incorrect. A student may be a student at a studio
without
being assigned to a session. I would think that when constructing a
session, one might be looking for students from a specific studion.

But, we don't really know the business rules on this, so it could be

either
way.


"KARL DEWEY" wrote in message
...
I have the student related to Session and then to studio.
--
KARL DEWEY
Build a little - Test a little


"Klatuu" wrote:

Couple of observations, KARL.
You don't show any relation between student and a studio. As it is
not
impossible a student could attend more that one studio, perhaps a
junction
table to represent that relationship.

Also in the Dance Session table you have Type. There should be a Type
table
and the Type field in the Dance Session table should be a foreign key

to
the
type table.

"KARL DEWEY" wrote in message
...
Studio --
StudioID - autonumber - primary key
Name -
Addr
City
State
ZIP

Student --
StudentID - autonumber - primary key
LName
FName
Phone

DanceSession --
SessionID - autonumber - primary key
StudioID - number - long integer - foreign key
Type - Tango, Waltz, etc.
Day - Mon, Tues, Wed,

StudentSession --
StudentID - number - long integer - foreign key
SessionID - number - long integer - foreign key
Paid - Yes/No

Set one-to-many relationship from primary key to foreign keys.
--
KARL DEWEY
Build a little - Test a little


"Confused" wrote:

I'm trying to create a data base where the Record will consist of a
form
to
input data for a dance title, Included in that form I need to

insert
the
dance studio that will be performing that dance (that has a drop

down
menu to
pick from a list of dance studio) and then i need to add the names

of
multiple students from a list from that studio only that will be in
that
dance only. So i need to be able to chose from a list of students

from
that
dance studio. And i need to be able to chose multiple students for
that
dance....i know i have to use sub-forms but i having a difficult

time
designing this.









 




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 05:35 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.