OK. Open the form in design view. In the top left hand corner of the form you will see a little black square. Double click on the black square. You should now have a list of the forms properties. Scroll down until you come to On Open. Click in the field next to the On Open. This should bring up a down arrow and a box with 3 stops. Click on this and you will get a box to choose a builder. Choose Code builder. And there you have it. Just put the line of code in between Private Sub etc. etc and End Sub and that should do it.