cfriedberg
MIS
When I create a report using delimited text files for the data, I cannot regenerate the text file (actually delete the original text file and then recreate it) because the report still has it open. I have gone to great lengths to close the file after it has been created in my code, but the
report still "grabs" it and will not release it until I get completely out of VB.
I have used FreeFile to get a file handle and then close the file on the way out of the data creation Sub.
In the report Sub I have the following two lines of code:
CRViewerWIP.ViewReport
Set m_report = Nothing
But because the report had the file open, I am prevented from regenerating the data file.
report still "grabs" it and will not release it until I get completely out of VB.
I have used FreeFile to get a file handle and then close the file on the way out of the data creation Sub.
In the report Sub I have the following two lines of code:
CRViewerWIP.ViewReport
Set m_report = Nothing
But because the report had the file open, I am prevented from regenerating the data file.