I wrote a Macro which passes seven parameters to a Module. The Module simply takes these parameters and writes a record to a table. The problem is the Module is being executed two times, the first time writes a new record to the table and the second pass gives me a ‘duplicate key’ error. There are no ‘Do-Loops’ in the Module and when I step it through the debugger when it gets to the ‘End Function’ line (the last line in the Module) instead of exiting the program it jumps back up to the first line of the Module and re-executes the code. I have written Modules before but never encountered one that ran two times. Can anyone tell me why this is happening. Thank you for your time.