J
J L
In the following code, I am trying to find a record in my Operators
table based on the field ID. I have a record with ID = John (cap J).
The code below returns this record even thoug I did the select on john
with small j. What am I doing wrong?
(Note: this function returns the variable dTable and boolean result if
a record was found, hence the myDT.copy etc.)
TIA,
John (wiht Cap J LOL)
strSQL = "SELECT * FROM Operators WHERE ID = 'john'"
Dim da As New DbDataAdapter = OledDbDataAdapter(strSQL,
"Microsoft.Jet.OLEDB.4.0;user ID=Admin;Data
Source=C:\TestData\Marymonte.mdb")
Dim myDS as New DataSet
Dim myDT as New DataTable
da.Fill(myDS)
myDT = myDS.Tables(0)
if myDT.Rows.Count > 0 then
dTable = myDT.copy
return True
end if
table based on the field ID. I have a record with ID = John (cap J).
The code below returns this record even thoug I did the select on john
with small j. What am I doing wrong?
(Note: this function returns the variable dTable and boolean result if
a record was found, hence the myDT.copy etc.)
TIA,
John (wiht Cap J LOL)
strSQL = "SELECT * FROM Operators WHERE ID = 'john'"
Dim da As New DbDataAdapter = OledDbDataAdapter(strSQL,
"Microsoft.Jet.OLEDB.4.0;user ID=Admin;Data
Source=C:\TestData\Marymonte.mdb")
Dim myDS as New DataSet
Dim myDT as New DataTable
da.Fill(myDS)
myDT = myDS.Tables(0)
if myDT.Rows.Count > 0 then
dTable = myDT.copy
return True
end if