E
Ed
I was given a Class Module called LogIt. I have forgotten the author and
where I got it, but I have used it before successfully with no errors. I
ran Code Cleanup and then Compiled, and got an error in the LogIt module on
the code
On Error GoTo HandleError
' Delete the current log file if it exists
If Len(Dir$(mstrPath & mstrFile)) > 0 Then
Kill mstrPath & mstrFile
End If
The error highlights "Kill" and says "Wrong number of arguments or invalid
property assignment." At the moment, all I can do to get past the error is
comment out the line. What am I missing?
Ed
where I got it, but I have used it before successfully with no errors. I
ran Code Cleanup and then Compiled, and got an error in the LogIt module on
the code
On Error GoTo HandleError
' Delete the current log file if it exists
If Len(Dir$(mstrPath & mstrFile)) > 0 Then
Kill mstrPath & mstrFile
End If
The error highlights "Kill" and says "Wrong number of arguments or invalid
property assignment." At the moment, all I can do to get past the error is
comment out the line. What am I missing?
Ed