>Just when I think I understand VFP...
>
>My invoicing app uses data files in u:\service. When run in development mode, it opens the correct files (ord, ordit) but when compiled to an exe, it opens the files (same names) from u:\.
>
>Checking the de in the form, the file is correctly identified as u:\service\ord.dbf, but that is not the one opened from the exe.
>
>What have I missed?
You should reset Database properties for all cursors in Form.DataEnvironment. The preferable place for this is DataEnvironment.BeforeOpenTables event.
Edward Pikman
Independent Consultant