Are you sure you want to use RowSourceType = 6? I personally don't remember using it, I prefer to use alias instead.
>1) The code for Dblclick in activexcontrol - which call the modul
>
>IF tnKundnr>0
> Thisform.mmks_searchcontact(tnKundnr, tcModul, tcTelefon)
>ENDIF
>
>2) Code for combobox
>
>
>Set ENGINEBEHAVIOR 70
>Thisform.cboContactSearch.RowSource = ""
>Thisform.cboContactSearch.RowSourceType = 0
>
>Select * ;
> FROM __tapicustomerfound ;
> INTO Cursor tapicustomerfound;
> NOFILTER
>
>Thisform.cboContactSearch.RowSource = "tapicustomerfound.kurzbez,telefon,modul"
>Thisform.cboContactSearch.RowSourceType = 6
>Thisform.cboContactSearch.ColumnCount = 3
>Thisform.cboContactSearch.ColumnWidths = "200,100,30"
>Thisform.cboContactSearch.ColumnLines = .F.
>Thisform.cboContactSearch.Requery()
>
>If Thisform.cboContactSearch.ListCount>0
> Thisform.cboContactSearch.ListIndex = 1
>Endif
>
>
>But I must repeat.. I can make dblcick 20 times - and no error.. but on 21-th..time.. FoxPro messagebox appears.. and more.. eventhandler not catch this error...
>
>
>>Can you post your updated code?
>>
>>>I read this, and did all what you wrote in doc. Problem still there.. and more bad - this problem happens "SOMETIMES"
>>>-So.. I have an ActiveX control where I make a DblClick - this Dblclick start method which re-fill this combobox.
>>>So.. I start this program.. all fine.. make dblclick - all fine - no error.. making it twice..3..4..5.. ooops.. "Cannot access the selected table" but table (cursor) is open in workarea....
>>>
>>>%-[ ]
If it's not broken, fix it until it is.
My Blog