Access – Undefined function when you open a form

The problem was the location at which access DB as saved was not defined as trusted location.  Once the location was set as trusted location, the issue was resolved.

How to set trusted location in access 2007:

1) Open Access
2) Click on the Office Button
3) Click on the Access Options
4) Click on Trust Center
5) Click on Trust Center Settings
6) Click on Trusted Location
7) Add the Access DB Location to be trusted
8) Click ok