i2c03a
Messages postés16Date d'inscriptionmardi 18 janvier 2005StatutMembreDernière intervention31 octobre 2005
-
12 mai 2005 à 11:24
TrafMaxime
Messages postés288Date d'inscriptionmercredi 4 mai 2005StatutMembreDernière intervention26 janvier 2012
-
17 mai 2005 à 13:56
J'ai creé une conection à une BD Access et qui fonctionne correctement.
Maintenant je voudrais n'afficher (dans un DataGrid) que les éléments correspondants a la saisie dans le TextBox. Mon code est le suivant:
Je suis en VB.NET
Public
Sub SelectListing()
Dim txtRacine
As
String = FrmRechercher.txt_Racine.Text
Dim StrSelect
As String "SELECT ARTICLE.Code_CMS, ARTICLE.Num_racine, ARTICLE.Designation_art, ARTICLE.Statut, ARTICLE.CentreCout FROM FOURNISSEUR INNER JOIN (RACINE INNER JOIN ARTICLE ON RACINE.Num_racine ARTICLE.Num_racine) ON FOURNISSEUR.Code_fourn = ARTICLE.Code_Fourn"
'Dim StrSelect As String "SELECT Code_CMS, Num_racine, Designation_art, Statut, CentreCout FROM ARTICLE, RACINE, FOURNISSEUR WHERE ARTICLE.Num_racine ' FrmRechercher.txt_Racine.Text 'AND FOURNISSEUR.Code_fourn = ARTICLE.Code_Fourn"
'Dim StrSelect As String = "SELECT ARTICLE.Code_CMS, ARTICLE.Num_racine, ARTICLE.Designation_art, ARTICLE.Statut, ARTICLE.CentreCout FROM FOURNISSEUR INNER JOIN (RACINE INNER JOIN ARTICLE ON ARTICLE.Num_racine= '" + FrmRechercher.txt_Racine.Text + "') ON FOURNISSEUR.Code_fourn = ARTICLE.Code_Fourn"
Dim MyCommandS
As OleDbCommand =
New OleDbCommand(StrSelect, MyConnection)
TrafMaxime
Messages postés288Date d'inscriptionmercredi 4 mai 2005StatutMembreDernière intervention26 janvier 20121 12 mai 2005 à 17:15
J'hésite à préciser ma réponse de la dernière fois(ki contient c
vrai une petite erreur, ou plutot un petit oubli), parce que profiteur
insoucieux que tu es, tu daigneras une nouvelle fois pas me répondre.
..........
Allez, c mon jour de bonté :
alors Mr le mur :
ton 3eme strselect est proche du but, il faut remplacer le' =' par un
'like' et ca devrait marcher..., à moins que les parenthèses ne gênent
encore quelque peu, faut essayer
No Comment, mister_je pense k'à moi, les autres je m'en tape meme ceux ki m'aident.