I
Ian
Here is the code I'm using to count records before closing a form (if the
count = 0 I'd like it to do something)
Private Sub Form_Close()
Dim ChkIt As Integer
Me.ClientID.SetFocus
'qry_cntactappt has where clause for form.frm_client.clientID to sync with
active form
ChkIt = DCount("apptID", "qry_cntactappt")
If ChkIt = 0 Then
MsgBox ("Make this hell stop")
Else
MsgBox ("Shoot Me in Foot now")
End If
End Sub
Before the form closes it bounces back to the first record rather than the
(what was) active form. Any idea why it's doing that?
count = 0 I'd like it to do something)
Private Sub Form_Close()
Dim ChkIt As Integer
Me.ClientID.SetFocus
'qry_cntactappt has where clause for form.frm_client.clientID to sync with
active form
ChkIt = DCount("apptID", "qry_cntactappt")
If ChkIt = 0 Then
MsgBox ("Make this hell stop")
Else
MsgBox ("Shoot Me in Foot now")
End If
End Sub
Before the form closes it bounces back to the first record rather than the
(what was) active form. Any idea why it's doing that?