I have a report (.frx file) that I make a copy of, then open it as a table in code and insert records so that I can add rows dynamically. That's working great. Except this file is temporary, so I need to delete it when I'm finished.
But when I try to delete it, I get a 'File is in use' error. I've done 'USE IN (lcTempFile)' and plain old 'USE'. (where lcTempFile is the string variable holding the name of the .frx I 'USE'd previously. when I check in the WATCH window to see if it's USED(), it's not, but it won't let me delete the file. The report itself has been closed by this time also. What's the problem?
BlackDice
But when I try to delete it, I get a 'File is in use' error. I've done 'USE IN (lcTempFile)' and plain old 'USE'. (where lcTempFile is the string variable holding the name of the .frx I 'USE'd previously. when I check in the WATCH window to see if it's USED(), it's not, but it won't let me delete the file. The report itself has been closed by this time also. What's the problem?
BlackDice