<CFSET NEWBIE= "ME">
<CF_BEG_FOR_HELP>
<CF_MY_TABLES>
*Table "Students" with columns "AthleteID and "Password"
*Table "Profile" with column "ProfileID" and numerous columns that contain info about athletes.
*Table "Coaches" with columns "CoachID" and "Password"
<CF_GOAL>
I want an application that will allow coaches to browse through the athletes table then save the profiles they want to their drawer. The coaches can save up to 10 profiles.
<CF_THEORY>
I'm thinking the best way to go about this would be to make a table called "Drawer" with a DrawerID = CoachID; thus each drawer belongs to a certain coach. The table would then have 10 additional columns that correspond to the number of athlete profiles the coach can save.
So when a coach saves a profile, a link to the profile is saved to a column ( numbered 1 - 10 ). If all the columns are filled, then the coach is prompted to manage his drawer.
<CF_QUESTION>
My question is how to create a query that will output columns and that can be edited?
In my appication the coach logs on and his session.coachID is recorded.
A row is created with the drawerID = session.coachID when he saves a link to a profile. The link to the profile is then saved to the 1st column. So he has 9 columns left. The next time he saves, how do I get the app to input to the second column? and how do I recordcount the columns so I can keep the coach from resaving a profile that is already in his drawer?
<CF_THANKS>
Any help would be GREATLY APPRECIATED! Thanks in advance!
Table "Drawer" with columns
<CF_BEG_FOR_HELP>
<CF_MY_TABLES>
*Table "Students" with columns "AthleteID and "Password"
*Table "Profile" with column "ProfileID" and numerous columns that contain info about athletes.
*Table "Coaches" with columns "CoachID" and "Password"
<CF_GOAL>
I want an application that will allow coaches to browse through the athletes table then save the profiles they want to their drawer. The coaches can save up to 10 profiles.
<CF_THEORY>
I'm thinking the best way to go about this would be to make a table called "Drawer" with a DrawerID = CoachID; thus each drawer belongs to a certain coach. The table would then have 10 additional columns that correspond to the number of athlete profiles the coach can save.
So when a coach saves a profile, a link to the profile is saved to a column ( numbered 1 - 10 ). If all the columns are filled, then the coach is prompted to manage his drawer.
<CF_QUESTION>
My question is how to create a query that will output columns and that can be edited?
In my appication the coach logs on and his session.coachID is recorded.
A row is created with the drawerID = session.coachID when he saves a link to a profile. The link to the profile is then saved to the 1st column. So he has 9 columns left. The next time he saves, how do I get the app to input to the second column? and how do I recordcount the columns so I can keep the coach from resaving a profile that is already in his drawer?
<CF_THANKS>
Any help would be GREATLY APPRECIATED! Thanks in advance!
Table "Drawer" with columns