My coworker has a form that has 2 combo boxes.
cboteam bound to dbo_teams.TeamID[/b
Rowsource = SELECT dbo_Teams.TeamId, dbo_Teams.TeamName FROM dbo_Teams;
Column Count = 2
Bound column = 1
After Update = Me.cboGroup.Requery
Table Data
TeamId TeamName
13 Engineering
14 IT
cboGroup bound to dbo_groups.groupid
Rowsource = SELECT dbo_GROUP.GroupID, dbo_GROUP.TeamId, dbo_GROUP.TEAM, dbo_GROUP.GROUP FROM dbo_GROUP
WHERE (((dbo_GROUP.TeamId)=[Forms]![dbo_TeamGroups2]![TeamID]));
Column Count = 4
Bound column = 1
Table Data
Groupid TeamID GroupName
1 13 Infrastructure
2 13 Project Delivery
3 14 Revenue
4 14 Disbursements
On his form, he selects the team from the first combo box. Based on that selection, the 2nd combo box populates. (I had him add a cbogroup.requery after update onthe first combo box. This works fine.
I don't do much with bound forms so I'm not sure what to tell him on this next part.
When you select the group from the 2nd combo box, it saves the group id to the result table along with the team id -- this is fine. However, when he navigates between records,
the group id doesn't display in the group combo box. I did verify that the data was in the table.
What he actually wants to do is save the group id to the table but when he navigates between records, he wants the combo box to show the actual group name not the id. Is this possible and how would you go about doing this.
there are 2 issues that i think he will come back and ask me
1. When you select the item you want in the combo box, can you display the team name (combo box 1) or group name(combo box 2) but save the id to the table.
2. When he pages back and forth on the records, how can he display the team name or group name in the combo box?
Thanks
lhuffst
cboteam bound to dbo_teams.TeamID[/b
Rowsource = SELECT dbo_Teams.TeamId, dbo_Teams.TeamName FROM dbo_Teams;
Column Count = 2
Bound column = 1
After Update = Me.cboGroup.Requery
Table Data
TeamId TeamName
13 Engineering
14 IT
cboGroup bound to dbo_groups.groupid
Rowsource = SELECT dbo_GROUP.GroupID, dbo_GROUP.TeamId, dbo_GROUP.TEAM, dbo_GROUP.GROUP FROM dbo_GROUP
WHERE (((dbo_GROUP.TeamId)=[Forms]![dbo_TeamGroups2]![TeamID]));
Column Count = 4
Bound column = 1
Table Data
Groupid TeamID GroupName
1 13 Infrastructure
2 13 Project Delivery
3 14 Revenue
4 14 Disbursements
On his form, he selects the team from the first combo box. Based on that selection, the 2nd combo box populates. (I had him add a cbogroup.requery after update onthe first combo box. This works fine.
I don't do much with bound forms so I'm not sure what to tell him on this next part.
When you select the group from the 2nd combo box, it saves the group id to the result table along with the team id -- this is fine. However, when he navigates between records,
the group id doesn't display in the group combo box. I did verify that the data was in the table.
What he actually wants to do is save the group id to the table but when he navigates between records, he wants the combo box to show the actual group name not the id. Is this possible and how would you go about doing this.
there are 2 issues that i think he will come back and ask me
1. When you select the item you want in the combo box, can you display the team name (combo box 1) or group name(combo box 2) but save the id to the table.
2. When he pages back and forth on the records, how can he display the team name or group name in the combo box?
Thanks
lhuffst