YES.... Bonnie
Do you know what I was missing ??
I should assign the ".ValueMember" in order to work with the "SelectedValue", otherwise it will raise the error I show you before.
I't working excelant now.
Bonnie, thank u .. thank u & thank u, you saved me alot of codding.
You know I'm missing DOS programming days!!! :-)
>>>Well, Ahmad ... I have no idea what your data is and this is obviously part of where your problem is ... you need to debug this thing and see what's causing your error.
>>>
>>>
>>>
>>>>Run-time error
>>>>
>>>>>Is this a compile-time error or a run-time error?
>>>>>
>>>>>
>>>>>
>>>>>>Bonnie,
>>>>>>
>>>>>>It raises this error:
>>>>>>Additional information: Can't set the SelectedValue in a ListControl with empty ValueMember.
>>>>>>
>>>>>>In database I don't have any empty row!!
>>>>>>
>>>>>>Sorry Bonnie, but my mind is going out of cavarage area ! :-)
<><><><><><><><><><><><><><><><><><><><>
<><> REMEMBER,,,,KNOWLEDGE IS POWER <><>
<><><><><><><><><><><><><><><><><><><><>