How do I find records in MsAccess table using windows form

By kellygidiglo ·
I created a windows form to enter records in an MsAccess table. Data entry was successful but finding any single row from a search textbox doesn't work.
This is the code am trying to use.

Dim staffrecord As DataRow
dt = DsStaffInfo.Tables("StaffInfo")
Dim theId As String
theId = txtFind.Text
staffrecord = dt.Rows.Find(theId)

What am I doing wrong, I need to impress my boss. Thanks in advance for assistance. Am online

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Share your knowledge

Related Discussions

Related Forums