>>>After I moved my exe on the network it works properly from any other PC but my own. It (exe) always "looks" for local views that I defined in the data environment of my form in my PC c:\myprj\data directory rather then on network. If I would rename dir on my PC I am getting error, exe still looks for data on my PC. What I did wrong?
>>
>>You may and should reset Database property for DataEnvironment.Cursor(s) propgrammatically in DE.BeforeOpenTables event.
>
>Dear Edward,
>
>Thank you for your replay, but it still doesn't work.
>In DataEnvironment BeforeOpenTables event I have now code:
>THIS.Cursor1.DataBase = CURDIR()+"customer.dbc" - where customer.dbc is my database container and Cursor1 is my local view in that container.
>Application still looks into my local PC dir and generates an error...
Did you check CURDIR() value? Try to put literal path, just for testing.
Edward Pikman
Independent Consultant