I have a short code in Access that only works when stepping through it.
But, when running it, it does not work. The combobox selects a last name.
The subform field "ConfCode" appears correctly in the subform but the code
does not provide the string equivalent as shown in the code below.
Code:
Private Sub Combo32_AfterUpdate()
TxtConstitCode.Value = " "
If [sfmVolun/BoardMem-CC].[Form]![ConfCode] = "V" Then
TxtConstitCode.Value = "Volunteer"
ElseIf [sfmVolun/BoardMem-CC].[Form]![ConfCode] = "B" Then
TxtConstitCode.Value = "Board Member"
End If
End Sub
It will also work when the value in Combo32 is clicked on twice.
TxtConstitCode appears to keep its previous value but will display
its correct value when the same value is selected again in the combo
box.
Why it works correctly in stepping through the code is a mystery to me.
Hope somebody can shed some light on this anomaly.