Dave Titan
Registered User.
- Local time
- Today, 06:29
- Joined
- Jan 1, 2002
- Messages
- 69
Can some one please tell me the code to close a form that as command button is set in that opens another form??
In other words I click on the command button on a form, that for opens and another form opens.
I have everything except how to close the old form that the command button is on.
Here's the code I have :
Private Sub Daily_Dave_Click()
On Error GoTo Err_Daily_Dave_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Frm Daily Stats Dave"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Daily_Dave_Click:
Exit Sub
Err_Daily_Dave_Click:
MsgBox Err.Description
Resume Exit_Daily_Dave_Click
End Sub
In other words I click on the command button on a form, that for opens and another form opens.
I have everything except how to close the old form that the command button is on.
Here's the code I have :
Private Sub Daily_Dave_Click()
On Error GoTo Err_Daily_Dave_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Frm Daily Stats Dave"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Daily_Dave_Click:
Exit Sub
Err_Daily_Dave_Click:
MsgBox Err.Description
Resume Exit_Daily_Dave_Click
End Sub