That's exactly what's causing the problem, as the Active Window is not the Draw Window. I believe that checking if Form getting the message is the DrawWindow should solve the issue.
-- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/