How do I find records in MsAccess table using vb.net windows form - TechRepublic
Question
December 7, 2009 at 06:46 AM
kellygidiglo

How do I find records in MsAccess table using vb.net windows form

by kellygidiglo . Updated 16 years, 7 months ago

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 discussion is locked

All Comments