السلام عليكم 
 
اذا لم تريدي عمل مفتاح مركب  اذا الكود المعمول بالقاعدة يعمل اللازم  
 
 
مجرد طرح افكار لا اكثر 
 
تحياتي 
 
Dim Cnn As New ADODB.Connection
Dim RstCheck As New ADODB.Recordset
Dim x As Integer
Set Cnn = CurrentProject.Connection
RstCheck.Open "Select * FROM Table1 Where Date = #" & txtDate.Value & "#;", Cnn, adOpenStatic
For x = 0 To RstCheck.RecordCount - 1
    If RstCheck.Fields("Name") = cmbName.Value Then
        MsgBox "ÊÖÇÑÈ ÇáÇÓã ãÚ ÇáÊÇÑíÎ ", vbExclamation, "Error"
        cmbName.SetFocus
        Me.Undo
        End If
        If Not RstCheck.EOF = True Or Not RstCheck.BOF = True Then
            RstCheck.MoveNext
            End If
Next
 
__________.rar