Whenever I run the form sometimes it run or sometimes same code will give the error 30087.

Sometimes its running and I added one trigger and compiled the trigger . Then it will give error. And some times I will delete the triggers then also it is not running. Again I will close the form and open it again . And again will add same trigger. This time it is running.

What I mean is howcome same thing is running onetime and another time giving error 30087. I am unable to understand the problem. Please help me.