Aaronsmity
New member
- Joined
- Nov 18, 2006
- Messages
- 2
- Programming Experience
- Beginner
dim blnFound as boolean
dim dr as datarow
ForEach dr In ds.Tables("dtCustomers").Rows
If dr("Phone").Trim = txtPhone.Text.Trim Then
blnFound = True
intCustID = dr("CustID")
MessageBox.Show("Found")
Else
blnFound = False
MessageBox.Show("Not Found")
EndIf
Next
Any ideas why I always get back a not found on strings that are definitely in the database? the table is filled, i dont know what the problem is any ideas? thanks, this is in vb.net
dim dr as datarow
ForEach dr In ds.Tables("dtCustomers").Rows
If dr("Phone").Trim = txtPhone.Text.Trim Then
blnFound = True
intCustID = dr("CustID")
MessageBox.Show("Found")
Else
blnFound = False
MessageBox.Show("Not Found")
EndIf
Next
Any ideas why I always get back a not found on strings that are definitely in the database? the table is filled, i dont know what the problem is any ideas? thanks, this is in vb.net