When I use the code that is given in the your link and when I preview my form and checked, it shows a error as "Access_GAL" is undefined. I think this Access_GAL is a system defined function and the system does not recognize this function.
I am using office 2007 and OS is Microsoft Windows XP.
Could any one advice how to proceed.