Please do NOT post your full code, and please DO post your exact error message!
Nevermind I found my mistake
It would much more helpful to your fellow wizards if you explain what the error was, in case others have the same problem!