G
Guest
I have a startup screen (form) with a button that has the below code. The
button opens my switchboard. What code would I add that would also close my
startup screen?
Private Sub cmdOpenSwitch_Click()
On Error GoTo Err_cmdOpenSwitch_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Switchboard"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_cmdOpenSwitch_Click:
Exit Sub
Err_cmdOpenSwitch_Click:
MsgBox Err.Description
Resume Exit_cmdOpenSwitch_Click
End Sub
Many thanx,
Rip
button opens my switchboard. What code would I add that would also close my
startup screen?
Private Sub cmdOpenSwitch_Click()
On Error GoTo Err_cmdOpenSwitch_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Switchboard"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_cmdOpenSwitch_Click:
Exit Sub
Err_cmdOpenSwitch_Click:
MsgBox Err.Description
Resume Exit_cmdOpenSwitch_Click
End Sub
Many thanx,
Rip