Instead of directly putting the hard coded size of the screen you should get the window size & then do your drawing. In this case whatever be the size of window your program will never fail.
-- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
