Hello, I know this question has been asked and I have search all the posts on
the subject.I just can't seem to get this right.
What i need to do is store the values chosen from each combo box.
This Is what I have.
tbl_player information ( where all information on player is stored )
tbl_sportsidentification (list of sports )
tbl_sportspositions (list of all sport positions linked to
tbl_sportsidentification)
tbl_sportidentification has fields of
sports_ID
Sports
tbl_sportspositions has fields of
position_ID
sport_ID
positions
the tables are linked by the sport_ID
I have two combo boxes
cbxsport1
cbxposition1
I want to pick a sport in cbxsport1 ( and store that value in player
information under sport)
and have the second combo box cbxposition1 show only the positions under the
sport chosen in the first combo box.
I have tried all the examples, using tables and query's and still can not get
it right.
any help would be most appreciated.
this is an example of a query example i used.
Private Sub Sport1_AfterUpdate()
Dim strSQL As String
strSQL = "Select " & Me!Sport1
strSQL = strSQL & " from sport "
Me!Position1.RowSourceType = "table/query"
Me!Position1.RowSource = strSQL
Me!Position1.Requery
End Sub
the subject.I just can't seem to get this right.
What i need to do is store the values chosen from each combo box.
This Is what I have.
tbl_player information ( where all information on player is stored )
tbl_sportsidentification (list of sports )
tbl_sportspositions (list of all sport positions linked to
tbl_sportsidentification)
tbl_sportidentification has fields of
sports_ID
Sports
tbl_sportspositions has fields of
position_ID
sport_ID
positions
the tables are linked by the sport_ID
I have two combo boxes
cbxsport1
cbxposition1
I want to pick a sport in cbxsport1 ( and store that value in player
information under sport)
and have the second combo box cbxposition1 show only the positions under the
sport chosen in the first combo box.
I have tried all the examples, using tables and query's and still can not get
it right.
any help would be most appreciated.
this is an example of a query example i used.
Private Sub Sport1_AfterUpdate()
Dim strSQL As String
strSQL = "Select " & Me!Sport1
strSQL = strSQL & " from sport "
Me!Position1.RowSourceType = "table/query"
Me!Position1.RowSource = strSQL
Me!Position1.Requery
End Sub