Private Sub txtsearch_Click()
with data3.Recordset
a = txtidno.Text
.FindFirst "[id]'" & a & "" '
If .NoMatch Then
MsgBox "Record Not Found", vbInformation, "Search"
Else
txtborrowname.Text = .Fields("borrower's name")
txtcourse.Text = .Fields("course")
txtyear.Text = .Fields("year")
End If
End With
End Sub
("what is the lacking of my code of command button search? is there any other codes to be use in search button?")