>>>some data files in current directory and some data files in current directory + 1005 directory.
>>>
>>>what to do for this.
>>>warm regards,
>>>mk.
>>
>>See my answer at
www.foxite.com. Add code to the form.dataenvironment.beforeopentables changing either cursor.database or cursor.controlsource. Sure you need to do it for each cursor there to make sure you are taken the proper tables.
>
>or just
>Thisform.setall("database",oApp.dbcname,"cursor")
>in DE beforeopentables
That is good, but not for the case when some tables are in 1005 directory, and others in 1006 directory, and they seem do not belong to one particular database, or just free tables.