Copy all the above code, open the VBA editor in your Access Database (using Alt + F11 shortcut), select Insert from the menu bar, and select Module. Paste all the code in the newly opened window and save it once you are done copying.
You can now use the functions imported in your newly created...