How do I create sub-form in Access with selections based on previous choice?
-
I have 3 tables: Year, Team, Player. I have a DB of Coaches. What I am trying to achieve is a sub form that is attached to a coach id. I'm ok so far, but here's where my logic gets fuzzy : in the subform I wish to be able to choose a year the coach worked for a championship team, then to show only the teams for the year selected, then to show only the players for that team in that year. So I have a year going back say 50 years and the teams that played in each championship each year and the players that played for the teams in those years. So if I select 1984, when I go to select a team it only provides a choice from teams available for 1984 and then when I select a player it only shows the players for that team in 1984. I have a feeling that I need to create a few queries to obtain the result but would dearly like a logical kick in the head towards a solution. My ERD looks like like a magic trick at the moment ... Thanks in advance for any direction.
-
Answer:
I have something similar working in my database. I have two forms the primary and a subform. the primary form contains details of a customer and the subform contains the notes associated with that particular customer. If you have the subform inside of the primary form, then you would need to do the following. On the properties of the subform, Data tab, your source object would be the table you are pulling from. The Link Child Field/Link Master Field would contain the fields that join the two records together. You can have more then one field joining the records. You could have the Coach/Year on the primary form, then when you select the year, the subform of teams would populate, then by selecting the team you will get the players. hope this helps.
Ddywalgi at Stack Overflow Visit the source
Related Q & A:
- How can I trick SSH to connect using different configurations based on current location?Best solution by Server Fault
- How do I create a family tree form online?Best solution by familyecho.com
- How do I create a web based msn?Best solution by Yahoo! Answers
- How do I create a guest ftp user and give access to specific sub-folder with SSH?Best solution by Server Fault
- How can I forward an E-mail without forwarding all of the previous addresses?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.