combo-box result

awake2424

Registered User.
Local time
Yesterday, 18:13
Joined
Oct 31, 2007
Messages
479
Can the result of a combo-box be used in text in an AfterUpdate event?

Example, the combo-box (Result) can be negative or positive. If it is negative a textbox is populated with the test is (combo-box here)? Thank you.
 
Providing your combobox can be expressed as positive or negative then yes - if you can provide details of what you have as the rowsource of the combobox and the name of the textbox you want to populate, I can show you how
 
The rowsource of the combo-box is "Negative";"Positive" and the textbox to populate is Text216.
Code:
Private Sub Results_AfterUpdate()
If Me.Results = "Negative" Then
Me.Text216 = "Nothing was detected and the results are [Results]."

Thank you.
 
OK, what you need is

Code:
Me.Text216 = "Nothing was detected and the results are " & Results] & "."
 

Users who are viewing this thread

Back
Top Bottom