As the function declaration shows, it is an optional param. Previously, you
stated you were setting this param. If you are not then fine, simply do not
pass anything for this param when calling the function.
Yes, place the code in the switchboard's Load/Enload events. This one single
call will look after all open forms and any other forms you subsequently
open within your app.
Good luck.

Signature
HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
> If I am looking at the code right, I believe I do not have the GlobalHook
> set: (Optional GlobalHook As Boolean = False)
[quoted text clipped - 82 lines]
>>>>> >> appreciated.
>>>>> >> Thank you
Don Frechette - 16 Mar 2007 12:07 GMT
Stephen,
Yes I know I had said it was set, but being a novice with VBA, I didn't look
at the code good enough and assumed the GlobalHook was set by default.
Aside from that, the mousehook.dll started working on that user's computer
after a reboot, however this same approach did not work previously. We don't
know why it happened that way, but it did and all is well now.
> As the function declaration shows, it is an optional param. Previously,
> you stated you were setting this param. If you are not then fine, simply
[quoted text clipped - 92 lines]
>>>>>> >> appreciated.
>>>>>> >> Thank you