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 KB]()
![Name: 2.png
Views: 35
Size: 7.4 KB]()
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