does not give much info again for Cronk to help you.
Pleas explain What exactly does not work? Any error? Or the control is not vanishing?
Show us a little bit more code, information like where are you running this code from? What else have you tried so far. Will help us to help you. Good Luck !
Repeating Paul's question...where are you attempting to execute this code from?
Does any code execute when the Form is opened by simply clicking on it, in the Nav Pane? In version 2007 and later, when no VBA code executes, the problem is usually that the folder holding the database hasn’t been designated as a "Trusted" location.