Bonjour tout le monde,
bon voilà mon probléme, moi j'utilise vb.net et une base de donnée mysql,bref comme l'indique le titre voisi la requete en question:
mon problème est avec la ligne qui est coloré en rouge sachant que Form4.DataGridView4.Rows(j).Cells(0).Value est de type image dans un datagridview.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 Mycommand.CommandText = "SELECT COUNT(NATURE_CMD.NATURE_C ) FROM CMD, FORMAT_CMD, NATURE_CMD WHERE CMD.CODE_F = FORMAT_CMD.CODE_F and CMD.CODE_N = NATURE_CMD.CODE_N and NATURE_CMD.NATURE_C=('" + Form4.DataGridView4.Rows(j).Cells(2).Value.ToString + "') and FORMAT_CMD.prix= ('" + Form4.DataGridView4.Rows(j).Cells(1).Value.ToString + "') and FORMAT_CMD.IMG =('" + Form4.DataGridView4.Rows(j).Cells(0).Value + "')"
L'erreur c'est quel'opérateur '+' n'est pas défini pour type 'Byte'
Partager