A
albycindy
When I try to close my form, using the code below (simple), the form will not
close and I get a Type mismatch error. The error box says nothing else, just
Type mismatch. I have checked my References and compiled my database and
there are no problems there. Does anyone have any suggestions? (Using Access
2002)
Private Sub cmdClose_Click()
On Error GoTo Err_cmdClose_Click
DoCmd.Close "frmContact"
Exit_cmdClose_Click:
Exit Sub
Err_cmdClose_Click:
MsgBox Err.Description
Resume Exit_cmdClose_Click
End Sub
Private Sub Form_Close()
If Not IsNull(Me.OpenArgs) Then
DoCmd.OpenForm Me.OpenArgs, , , "[pkCRDNumber]=" & Me.pkCRDNumber,
acFormEdit
End If
End Sub
close and I get a Type mismatch error. The error box says nothing else, just
Type mismatch. I have checked my References and compiled my database and
there are no problems there. Does anyone have any suggestions? (Using Access
2002)
Private Sub cmdClose_Click()
On Error GoTo Err_cmdClose_Click
DoCmd.Close "frmContact"
Exit_cmdClose_Click:
Exit Sub
Err_cmdClose_Click:
MsgBox Err.Description
Resume Exit_cmdClose_Click
End Sub
Private Sub Form_Close()
If Not IsNull(Me.OpenArgs) Then
DoCmd.OpenForm Me.OpenArgs, , , "[pkCRDNumber]=" & Me.pkCRDNumber,
acFormEdit
End If
End Sub