ralphyehle
Registered User.
- Local time
- Today, 20:33
- Joined
- Aug 28, 2002
- Messages
- 22
At the music school students study violin, viola or cello. Based on their instrument they have three different piece lists.
I would like to create a combo box to display the pieces. I can do that with a separate box for each instrument's piece list.
What I need help with is how to create a single combo box that will select the data sources dependent on the value in a text box that identifies which instrument the student studies.
If txtInstrument = "Cello"
Then cboPieces combo box data source is tblCelloPieces.PieceName,
If txtInstrument = "Violin"
Then cboPieces combo box data source is tblViolinPieces.PieceName,
If txtInstrument = "Viola"
Then cboPieces combo box data source is tblViolaPieces.PieceName
Then I will only need one form rather than one for each instrument.
I would like to create a combo box to display the pieces. I can do that with a separate box for each instrument's piece list.
What I need help with is how to create a single combo box that will select the data sources dependent on the value in a text box that identifies which instrument the student studies.
If txtInstrument = "Cello"
Then cboPieces combo box data source is tblCelloPieces.PieceName,
If txtInstrument = "Violin"
Then cboPieces combo box data source is tblViolinPieces.PieceName,
If txtInstrument = "Viola"
Then cboPieces combo box data source is tblViolaPieces.PieceName
Then I will only need one form rather than one for each instrument.