السلام عليكم
عندي كود دائما يظهر رسالة missmatch رقم الخطا 13
Private Sub Text1_LostFocus(Index As Integer)
Dim tmpvar As String
If Index = 0 Then
If Not IsDate(Text1(Index).Text) Then Text1(Index).SetFocus
ElseIf Index = 1 Then
If Text1(Index).Text = "" Then Text1(Index).SetFocus
Dim rs As Recordset
Set rs = Adodc1.Recordset.Clone
rs.FindFirst "repno=" & Text1(Index).Text
If rs.NoMatch Then MsgBox "there isnt any recorde with this value"
rs.Close
End If
End Sub
وشكرا