Donny --- Jim is right. Get rid on my ON SHUTDOWN....I think my reply could be called an acid flashback from the 70's :-D
Another idea: Replace your ON SHUTDOWN DO MyShutdown with ON SHUTDOWN CLEAR EVENTS and then have the code you want executed immediately after the READ EVENTS in the main program code. No mess, no fuss.
>>Add a CLEAR EVENTS to the shutdown procedure
>
>Thanks for your reply, was any particular place in the shutdown procedure where I should have added the CLEAR EVENTS ? I replaced John's ON SHUTDOWN suggestion on the first line with CLEAR EVENTS but it seemed to have no effect.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05