Fairly certain Access is considering the printer name to be the name of a function, which is why the macro box could pop up. I say macro box because OP's default event handler is probably macros and not code.(BTW, you still haven't clarified what that box is).
@LadyScot101 - sorry this is taking us so long. Maybe if you posted the current full code rather than the snippets as in posts 12 and 19. With that and maybe a pic of the box, we might be able to move on. But I do think what you're referring to is the macro selector dialog. In cases like this, I keep every code line attempted and comment out the ones that don't work so I can keep what I tried handy. Would help us also if you had done that, but I don't expect you have.