Help! I'm sure this is something stupid, but I can't figure it out. (usine 97 / xp)
I have a main switchboard, which calls switchboard A, which has form A on it. I have a command button which closes form A and returns the user back to switchboard A, but I need it to go back to the main switchboard. (Switch was created using Switchboard manager).
I've tried, searching throught the help here & I've also tried
Private Sub cmdClose_Click()
On Error GoTo Err_cmdClose_Click
DoCmd.OpenForm "Switchboard", acNormal, , , acFormEdit, acNormal
DoCmd.close
'Docmd.Close
Exit_cmdClose_Click:
Exit Sub
Err_cmdClose_Click:
MsgBox Err.Description
Resume Exit_cmdClose_Click
End Sub
Any ideas?
I have a main switchboard, which calls switchboard A, which has form A on it. I have a command button which closes form A and returns the user back to switchboard A, but I need it to go back to the main switchboard. (Switch was created using Switchboard manager).
I've tried, searching throught the help here & I've also tried
Private Sub cmdClose_Click()
On Error GoTo Err_cmdClose_Click
DoCmd.OpenForm "Switchboard", acNormal, , , acFormEdit, acNormal
DoCmd.close
'Docmd.Close
Exit_cmdClose_Click:
Exit Sub
Err_cmdClose_Click:
MsgBox Err.Description
Resume Exit_cmdClose_Click
End Sub
Any ideas?