llExists = Do FindFile in Main with "Reports\My_Special_Report.frx" if llExists = .t. * continue else * no file have a graceful exit after telling user there is a problem endifThe FindFile Function looks like this:
************** Function FindFile ************************ * Finds out if a file exists * Parameter sent is file name with Relative path preferably * Returns TRUE if found and FALSE if not found Parameter tcfile Dimension lafile[1] llexists = Adir( lafile, tcfile ) > 0 Return llexistsIf you put this code in your main file and issue a test for that file before you run what do you get back, True or False?