RE: RunOnServer apparently not running Mark XY Brown 2.Nov.12 06:09 AM a Web browser Domino Designer 6.0.3Windows XP
Brilliant advice as ever, Stan - it now works!
I changed the variable strParam into a Variant (the Help file says that the NoteID is a string, but I thought I'd gamble on it), and added the Sleep statement to the loop. Also, trying to pick up a document by NoteID indeed yields Nothing if the document cannot be found, as per the Help file. However, the same file says that GetDocumentByUNID will also return Nothing if the document is not found, when it actually generates a run-time error. So overall this script is more reliable, too!