:) I've attached a sample database with the exact same code, but I thought adding all code in one place (it's not much) would clarify things a bit. I also already found the reason for this problem, so I added that as well so people wouldn't need to investigate first.
Anyway, once you're in...