Have you checked the event properties of the button to make sure the onClick() event is pointing to the right code.
In design mode select the button, right click, select properties, select event then press the ... button in event onClick
this should take you to the
vb code
Cheers
Let me know if this helps