suggest you post your question to an MS Office newsgroup. this NG answers
questions about using VBA code in forms in MS Access relational database
software.
No-one can guess exactly what your message is. It mnight be any of 50
gazillion different ones. When you repost your question to an
appropriate group, give them the courtesy of saying what the message
actually /is/ !