Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15079

Impossible problem VB.Net - Please help

$
0
0
Hi Everyone,

I am facing problem that I do not understand. I have tried all without any result, so decided to write for your help.

I am trying to search table in database (Access OleDbConnection)

I am running code as bellow to find:

number 7 - Not found
number 10 - Found
number 11 (after adding manually into the table) - Not found

Photos attached.

I am crazy about it and do not know what to do.

For i = 0 To DataGridView1.Rows.Count - 1

If DataGridView1.Rows(i).Cells(0).Value = 7 Then

znaleziono = True

Else

znaleziono = False

End If

Next

If znaleziono = True Then

MsgBox("Znaleziono", vbInformation, "")

Else

MsgBox("Nie znaleziono", vbInformation, "")

End If

Name:  1.png
Views: 34
Size:  7.3 KBName:  2.png
Views: 35
Size:  7.4 KB
Attached Images
  

Viewing all articles
Browse latest Browse all 15079

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>