I have a combo box and a list box on a form. I am having trouble with making a selection in the Combo Box and getting the List Box to display the appropriate message. The following details explain the situation:
Combo box name: cboClarity, when clicked it will display one of three values: "Average", "Good" or "Poor".
When a choice is made I would like the list box, called txtExplainer, to display a detailed explanation of what that choice means.
At present when cboClarity is clicked on the first option "Average", the list box will display the appropriate message, but if any other option is selected, i.e. "Good" or "Poor" Access just beeps and won't display any other explanation. I'm guessing that this is because the combo and the list box are not synchronised. The source table tblClarity has 3 fields: ClarityID (Autonumber), Clarity (Short Text) and Explainer (Short Text). The data for the table I put in manually.
I don't know the answer but I imagine the the possible SQL would look like this:
Select ClarityID, Clarity, Explainer
From tblClarity
Where ClarityID = Whichever clarity value is chosen i.e. Average, Good or Poor, (or the respective autonumber which matches those choices)
Somehow the cboClarity value is passed (when a choice is made) to the List Box - txtExplainer, to display more detailed info about the choice.
This is where I don't know and I'm asking for help as to how I link the combo box returned value to the list box to display the relevant explanation.
I imagine it also needs a ReQuery Refresh method somewhere in the AfterUpdate event to keep the data choices in sync.
I would appreciate your wisdom on all of this topic please?
Thank you.
Combo box name: cboClarity, when clicked it will display one of three values: "Average", "Good" or "Poor".
When a choice is made I would like the list box, called txtExplainer, to display a detailed explanation of what that choice means.
At present when cboClarity is clicked on the first option "Average", the list box will display the appropriate message, but if any other option is selected, i.e. "Good" or "Poor" Access just beeps and won't display any other explanation. I'm guessing that this is because the combo and the list box are not synchronised. The source table tblClarity has 3 fields: ClarityID (Autonumber), Clarity (Short Text) and Explainer (Short Text). The data for the table I put in manually.
I don't know the answer but I imagine the the possible SQL would look like this:
Select ClarityID, Clarity, Explainer
From tblClarity
Where ClarityID = Whichever clarity value is chosen i.e. Average, Good or Poor, (or the respective autonumber which matches those choices)
Somehow the cboClarity value is passed (when a choice is made) to the List Box - txtExplainer, to display more detailed info about the choice.
This is where I don't know and I'm asking for help as to how I link the combo box returned value to the list box to display the relevant explanation.
I imagine it also needs a ReQuery Refresh method somewhere in the AfterUpdate event to keep the data choices in sync.
I would appreciate your wisdom on all of this topic please?
Thank you.