Did this ever get resolved. The error might be happening because the function is expecting the parameter theForm to be a reference to a form, but when it's called it is called without any parameters. -joshua