G
Guest
I created a command button, through the automatic functions, that opens and
displays another form. When the second form opens, the original form stays
open.
I'd like to change the command button or add another command so that the
first initial form closes when the second form opens. Is it possible to use a
Macro?
Below is the VB code that was automatically created by Access. I'm very
inexperienced in VB and need very specific help.
Private Sub cmdOCabForm_Click()
On Error GoTo Err_cmdOCabForm_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frm2Cabinets"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_cmdOCabForm_Click:
Exit Sub
Err_cmdOCabForm_Click:
MsgBox Err.Description
Resume Exit_cmdOCabForm_Click
End Sub
displays another form. When the second form opens, the original form stays
open.
I'd like to change the command button or add another command so that the
first initial form closes when the second form opens. Is it possible to use a
Macro?
Below is the VB code that was automatically created by Access. I'm very
inexperienced in VB and need very specific help.
Private Sub cmdOCabForm_Click()
On Error GoTo Err_cmdOCabForm_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frm2Cabinets"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_cmdOCabForm_Click:
Exit Sub
Err_cmdOCabForm_Click:
MsgBox Err.Description
Resume Exit_cmdOCabForm_Click
End Sub