Oscar,
>When it fails lnRetVal = 3 but the statment
>lnRetVal = IIF(lnRetVal = FILE_CANCEL, FILE_OK, lnRetVal)
>will always set it to FILE_OK
In this scenario at what point in the process is lnRetVal set to a 3?
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com