Brain fart!
The 3rd param in AddListItem() specifies the column of the combo. So, as you increment the itemID so you increment the non-existant column. I assume you only have the 1 col so you don't need this papam anyway.
.AddListItem(ALLTRIM(a_acadr.cshipno),ln_key)
:-)
>Having a problem filling a combobox, this is what I'm doing:
>
>ln_key = 1
>
>SELECT a_acadr
>GOTO top
>DO WHILE !EOF()
>
>thisform.combo1.AddListItem(ALLTRIM(a_acadr.cshipno),ln_key,ln_key)
>ln_key = ln_key + 1
>
>skip
>ENDDO
>
>I thought this should work fine, I'm not filling it with much data, but it seems to get the first record and all the rest are blank? Am I having a brain fart? TIA!!!
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.