Firstly, and this is only my personal opinion, you should ALWAYS have OPTION EXPLICIT in your code, just beneath the OPTION COMPARE DATABASE. This means that you have to explicitly decalre any variables you use. Without it, Access just assumes that any you haven't declared are a variant...