Remove the controlsource, since it is not what you're using.
>I am working on making my Combo Box List display after I've selected one of the items as shown in the below code, but it won't display.
>
>I have a one-character field called BEND and I allow only the first character to go into the field for PASS, FAIL, or NOT TESTED. So, that would be P, F or N.
>
>Here's the LostFocus method:
>
>WITH ThisForm
> DO CASE
> CASE This.ListIndex = 1
> REPLACE Certs.Bend WITH "N"
>
> CASE This.ListIndex = 2
> REPLACE Certs.Bend WITH "P"
>
> CASE This.ListIndex = 3
> REPLACE Certs.Bend WITH "F"
>
> ENDCASE
> .SaveCancelStatus()
> .Refresh()
>ENDWITH
>
>
>I put the following in the combo box's INIT: This.ListIndex = 1
>ComboBox ROWSOURCE="Not Tested, Pass, Fail"
>ComboBox ROWSOURCETYPE=1 (Value)
>BoundColumn=1
>BoundTo=.T.
>ControlSource=certs.bend
>
>I am able to put the value I select into the field, but for some reason, this value won't display. Do I need to interpret the value in the field from the one character?
If it's not broken, fix it until it is.
My Blog