Can any one helpme here? I'mquite new toVBA, but i'm trying to prevent users from bypassing the autoexec macro by pressing the shift key. I have looked at help files and read a few solutions on the threads, but I keep getting error messages. I'm not sure how to run the code either. When I do, I keep getting a 'user defined type not defined' error message, which highlights 'Dim dbs As Database' inmy code. I'm really pulling my hair out onthis one. Any help would be grately appreaciated, it's more than likely tobe something i'm doing/not doing?