Dim conn As New OleDbConnection("PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source = e:\wms\wms\wms.mdb")
conn.Open()
Dim userDetailsAdapter As New OleDbDataAdapter("select * from daily_trans", conn)
Dim userDetailsTable As New DataTable
userDetailsAdapter.Fill(userDetailsTable)
Dim returnRows() As System.Data.DataRow = Nothing
returnRows = userDetailsTable.Select("cons = " & TextLine)
If returnRows Is Nothing Then
MsgBox("Can be saved")
Else
MsgBox("Primary Key")
End If
**While executing the above query i am getting error as Cannot find column.
Kindly advice..**