[vb/access] grmbl ... pb result requete

grmbl ... pb result requete [vb/access] - VB/VBA/VBS - Programmation

Marsh Posté le 08-06-2002 à 18:30:33    

bon
 
alors c un tit truc qui gere des commandes, chaques commande à N lignes avec pour chaque le proiduit commndé, ...
 
table T_LIGNESCDE:
NumCde [entier]
NumLigne [entier]
CodeProd [string]
QuantiteCde [entier]
 
table T_PRODUITS:
CodeProd [string]
Libellé
Prix
[...]
 
 
bref
je fé donc une requete qui join ces 2 tables pour y recup les articles commandés dans tel commande, avec leur prix ...
 
Il recup tout nikel ( prix de produits et tout )
y'a juste un truc qui merde, c qu'il me met " Element non trouvé dans cette collection" quand je veux afficher le CodeProd ( alors que pour le prix c bon par ex )
 
ma requete :
rqt = "SELECT * FROM T_LignesCde, T_Produits WHERE T_Produits![CodeProd] = T_LignesCde![CodeProd] AND T_LignesCde![NumCde] = " & memoire
 
memoire c le n° de commande
 
j'affiche avec :
 
  While Not RS.EOF
    l_numlig.AddItem RS![NumLigne]
    l_codeprod.AddItem RS![CodeProd]
    l_qte.AddItem RS![QuantiteCde]
    l_pu.AddItem Format(RS![PrixEuro], "0.00 ?" )
 [...]
 
c donc :
    l_codeprod.AddItem RS![CodeProd]
qui foire a l'affichage
 
j'ai test
    l_codeprod.AddItem RS![T_LignesCde![CodeProd]]
et
    l_codeprod.AddItem RS![T_Produits![CodeProd]]
 
il me met tjs pareil ..
 
 
je vois pas la :/
j'ai verif la base elle est comme il faut
quand j'enregistre tout ca via un truc VB aussi ca marche nikel
 
 
help :)


Message édité par Nokbilong le 06-08-2002 à 18:33:46

---------------
"-Dites 33. -Export!!" [:nokbilong]
Reply

Marsh Posté le 08-06-2002 à 18:30:33   

Reply

Marsh Posté le 09-06-2002 à 13:57:07    

aller plz faut que je presente cette merde mardi :/


---------------
"-Dites 33. -Export!!" [:nokbilong]
Reply

Marsh Posté le 09-06-2002 à 18:12:29    

VB  :gun:


---------------
"-Dites 33. -Export!!" [:nokbilong]
Reply

Marsh Posté le 09-06-2002 à 19:07:06    

Pas évident ton truc. Si tu veux m'envoyer ta base, je veux bien y jeter un coup d'oeil.

Reply

Marsh Posté le 09-06-2002 à 21:15:05    

latruffe a écrit a écrit :

Pas évident ton truc. Si tu veux m'envoyer ta base, je veux bien y jeter un coup d'oeil.  




 
 
pas de pb
look tes pm :)


---------------
"-Dites 33. -Export!!" [:nokbilong]
Reply

Marsh Posté le 09-06-2002 à 23:55:46    

sujet clos
 
thx latruffe :D
 
fallait mettre :
 


l_codeprod.AddItem RS![T_Produits.CodeProd]


---------------
"-Dites 33. -Export!!" [:nokbilong]
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed