Hello, I am trying to have an email send if it can't find a file. I have the subroutine to check the file, then if it can't find it I have:
Call emailReport(filename)
(filename being the variable of the file that's missing)
Then in my email subroutine:
Sub emailReport(filename)
...code...
objEmail.Textbody = "File missing: " & filename & ""
When this is run, I get "Microsoft VBScript runtime error: Wrong number of arguments or invalid property assignment: 'emailReport'"
1) is it possible to accomplish what i'm trying to do, and
2) what is wrong with the my code?
Thanks
Call emailReport(filename)
(filename being the variable of the file that's missing)
Then in my email subroutine:
Sub emailReport(filename)
...code...
objEmail.Textbody = "File missing: " & filename & ""
When this is run, I get "Microsoft VBScript runtime error: Wrong number of arguments or invalid property assignment: 'emailReport'"
1) is it possible to accomplish what i'm trying to do, and
2) what is wrong with the my code?
Thanks