Justin,
You will not be able to execute the code behind the button on the second form. However, just place the code behind the second form on the OPEN event. Then, when you run the code which opens the second form, the B1 routine will execute automatically.
Harpz