Thanks for the replies people
Using this code:
Private Sub CommandButton1_Click()
On Error GoTo CommandButton1_Click_Err
DoCmd.OpenForm "UserForm2", acNormal, "", "", , acNormal
DoCmd.Close acForm, "UserForm1"
CommandButton1_Click_Exit:
Exit Sub
CommandButton1_Click_Err:
MsgBox Error$...