Code fails when called from different controls

Printable View