J
javierlara
I try to search School and Date. but my code doesn't work
Can you Tell me my error?
Appreciate your help.
'--------------------Beginning Code
Dim db1 As Database, tb1 As Recordset
Dim esvar As Variant
tb1.MoveFirst
With tb1
.Index = "school"
esvar = .Bookmark
.Seek "=", [School] & [Date]
If .NoMatch Then
MsgBox ("This School and Date not Found")
Else
MsgBox ("This School and Date found and You are need to
verification date")
Date.SetFocus
'Cancel.True
End If
tb1.Close
End With
Can you Tell me my error?
Appreciate your help.
'--------------------Beginning Code
Dim db1 As Database, tb1 As Recordset
Dim esvar As Variant
tb1.MoveFirst
With tb1
.Index = "school"
esvar = .Bookmark
.Seek "=", [School] & [Date]
If .NoMatch Then
MsgBox ("This School and Date not Found")
Else
MsgBox ("This School and Date found and You are need to
verification date")
Date.SetFocus
'Cancel.True
End If
tb1.Close
End With