When using a script library with a subform a function or functions can sometimes not be found. It is not caching.The solution is simple.
You need to make sure the functions or subroutines are declared as public.
eg instead of:
function blah
msgbox "hello"
end function
you put in:
public function hello