Margaret,
Perhaps you can use the FindWindow API function to see if Notes is already running. For an example of this function you can look at:
How to switch between applications from Visual FoxPro? FAQ #7667
also this thread has several solutions:
Is the application already running Thread #
709151 Message #
709151and you can also check out this site for other possible API solutions
http://www.news2news.com/vfp>Hi Larry (or any other NOTES gurus),
>
>I have already used some code from other threads to automatic using Lotus to send email. My snag comes in that I don't want to hard code a password into the program I'm running which is creating a spreadsheet and then using Notes to distribute it. The report should be distributed by the user that's creating it. I don't want the program to hang if the Notes isn't open and it opens for the first time and waits for password entry. It would be better if the program could test for an open session and then branch based on whether it could use Notes to distribute the file.
>
>Is there any way to test for a session already being open? Is there another way around this problem?
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.