David,
The form and the cbo are created from base classes, and as far as I can tell there is no code that blows away the setup. I've never seen anything like this. This is all simple, straightforward programing (or so I thought). I knew I should have gotten that labotomy when I had the chance.
>James,
>
>That all looks ok to me. What is value of sponsor.keyaccmgrid? Is that table sitting at EOF() or BOF()? Do you have some other code in the class/form that blows away the setup of the cbo? Can you try a baseclass form/cbo?
>
>>I tried doing it like this, but the combobox doesn't display anything, even when I click on it. The array does have data in it. (I stepped through the code.) I tried creating an array property on the form and binding the control to that, but the same thing happens. This is crazy! What am I missing?
>>
>>
>>Local lcSQL
>>
>>This.AddProperty("aKeyaccmgr(1)")
>>Select mgrname, id ;
>> from keyaccmgr ;
>> where geo_area = m.us_geo_area ;
>> into array This.akeyaccmgr ;
>> order by mgrname
>>
>>With this
>> .rowsourcetype = 5
>> .rowsource = This.akeyaccmgr
>> .BoundColumn = 2
>> .BoundTo = .T.
>> .ControlSource = "Sponsor.Keyaccmgrid"
>> .ColumnCount = 2
>> .ColumnLines = .f.
>> .ColumnWidths = "200,0"
>> .Requery()
>>Endwith
>>