>>>Thanks Nadya, The code works great. The problem I'm having is that when I try to run the EXE on another workstation, it gives me an error. I installed the ocx and dll files. The error I get tells me that I need the correct license to run this code on this machine? Do I need to install VB on my developer's PC? Please help. Thank you!!
>>>
>>>Tim
>>
>>It's a bug in VFP 6 that doesn't allow to instaniate activex controls at runtime. See mskb#
Q192693 for details and workaround.
>
>Seems like Sergey answered it, however, I'm not 100% sure, it applies in your situation. As I know, you don't use thisform.AddObject, you do
>
oDialog = createobject('MSComDlg.CommonDialog')
>
>How did you distribute your application?
The above mskb still applies.
--sb--