sorry,
i put the code under inti event, but it works under event gotfocus
thanks again
>>hi,
>> add an array property aTables to your form.?? i have no idea how.
>>
>>thanks again
>>
>
>See programmatic way in the previous message. To do it in Form's Designer go to the menu Form, New property. Type aTables[1] in the property name. In the description type "Array to hold list of tables in my directory" (change my to your directory).
>Click Ok.
>
>You're done.
>
>>>Please read my response few messages back. I said, you need to add an array property aTables to your form.
>>>
>>>Anyway, you can also do it in the code with
>>>
>>>
thisform.AddProperty('aTables[1]')
>>>