Paulm said:
What you provided below makes sense. I understand where to put the
Open even info, however, where do I put the code for the Function
Declaration?
Paste it into a standard module -- one of those shown on the Modules tab
of the database window. If necessary, create a new standard module for
the purpose. When you save the module and are prompted for its name,
don't give it the same name as the function. You can leave it with the
name that Access proposes, like "Module1", or you can give it some name
that makes sense to you, so long as it isn't the same as any other
global name. I generally prefix module names with the characters "bas",
for "Basic code" (as in "basUtilities"), while others sometimes use the
prefix "mod" or "mdl", for "module". You aren't required to use a
prefix, but it helps ensure the module's name is unique.