DevilsSlide
Technical User
Can I do this and where am I going wrong or am I wasting my time because it just can't be done?
In the Data Sheet View of a table [tblOKd] I want to list only individual members (as a Combo Box) assigned to a team as defined in [tblIndiv] based on the selection in the field [tblOKd].[GrpName].
I've tried many different combinations in "Row Source", as close as I can get when I try to populate the records in Data Sheet view of the table I get a MsgBox - ('Enter Parameter Value' & 'tblOKd.TeamName'). Using 'SELECT [tblIndiv].[IndivName] FROM tblIndiv WHERE (([tblOKd].[TeamName]=[tblIndiv].[TeamName]));' in the "Row Source" of the table properties tab for that field it does only list members of that team, but when I add a new record for a different team it still only lists the same members.
What am I doing wrong???
I have listed a samplified version of my tables, fields and values below:
Tables Used
Table Name: tblTeamName
Field Name: TeamName
Record Values: Team1 thru Team3
Table - tblIndiv
Field Name - TeamName
Field Name - IndivName
Record Values: User1 thru User9
*I've assigned User1 to 3 to Team1
*I've assigned User4 to 6 to Team2
*I've assigned User7 to 9 to Team3
Table Name: tblOkd
Field Name: OKdID (Auto Number Key)
Field Name: TeamName (LookUp Combo Box using DISTINCT)
Field Name: OKdBy (LookUp Combo Box)
Relations:
[tblTeamName].[TeamName] to [tblIndiv].[TeamName]
[tblIndiv].[TeamName] to [tblOKd].[TeamName]
Please Help!!!
John
In the Data Sheet View of a table [tblOKd] I want to list only individual members (as a Combo Box) assigned to a team as defined in [tblIndiv] based on the selection in the field [tblOKd].[GrpName].
I've tried many different combinations in "Row Source", as close as I can get when I try to populate the records in Data Sheet view of the table I get a MsgBox - ('Enter Parameter Value' & 'tblOKd.TeamName'). Using 'SELECT [tblIndiv].[IndivName] FROM tblIndiv WHERE (([tblOKd].[TeamName]=[tblIndiv].[TeamName]));' in the "Row Source" of the table properties tab for that field it does only list members of that team, but when I add a new record for a different team it still only lists the same members.
What am I doing wrong???
I have listed a samplified version of my tables, fields and values below:
Tables Used
Table Name: tblTeamName
Field Name: TeamName
Record Values: Team1 thru Team3
Table - tblIndiv
Field Name - TeamName
Field Name - IndivName
Record Values: User1 thru User9
*I've assigned User1 to 3 to Team1
*I've assigned User4 to 6 to Team2
*I've assigned User7 to 9 to Team3
Table Name: tblOkd
Field Name: OKdID (Auto Number Key)
Field Name: TeamName (LookUp Combo Box using DISTINCT)
Field Name: OKdBy (LookUp Combo Box)
Relations:
[tblTeamName].[TeamName] to [tblIndiv].[TeamName]
[tblIndiv].[TeamName] to [tblOKd].[TeamName]
Please Help!!!
John