Set the value of a checkbox field from a function

Set the value of a checkbox field from a function

Scouring the help forums and documentation...it does not appear that I can set the value of a checkbox field from a function.  Is this true or is there a way to set a checkbox value from anywhere other than the On Load event?