well Alexandre, i more or less did it (w/your & others help of course) this is
ofcourse a tentative solution until
i test it for any loopholes but it seems
to be working for now.
check this out:
If DCount _
(DLookup("Event_form_Event_", "defaultquery", "event_form_event_=" & Me.[Event_form_Event_]), _
"defaultquery", "[regionaldirector]= '" & Me.txtGlobalRegDir & "'") >= 1 Then
MsgBox "Duplicate", vbExclamation, "Error"
Cancel = True
Exit Sub
End If
thanks for sticking w/me this long Alexandre!
ofcourse a tentative solution until
i test it for any loopholes but it seems
to be working for now.
check this out:
If DCount _
(DLookup("Event_form_Event_", "defaultquery", "event_form_event_=" & Me.[Event_form_Event_]), _
"defaultquery", "[regionaldirector]= '" & Me.txtGlobalRegDir & "'") >= 1 Then
MsgBox "Duplicate", vbExclamation, "Error"
Cancel = True
Exit Sub
End If
thanks for sticking w/me this long Alexandre!