>Thanks George, you're suggestion seems to work great. However, when I use database fields for my path and filename it doesn't work - lnresult returns 2.
>
>WORKS:
>lnresult = ShellExecute(0,'open',"wmar-100.dwg","","s:\drafting\acts\98202", 9)
>
>DOESN'T WORK:
>lnresult = ShellExecute(0,'open',vacancies_view.fp_name,"",vacancies_view.fp_path, 9)
>
>Any suggestions?
Tom,
I'm not exactly sure what you're trying to do in the second case. It looks like you're trying to open a VFP view (which is usually contained in the a DBC). I noted, however, that an independent view file (.VUE extension) doesn't have the small Fox icon identifying it. This means that the file wasn't associated with any application, in which case double clicking it would fail, as would ShellExecute.
George
Ubi caritas et amor, deus ibi est