J'aimerais dans cette requ=EAte faire en code:
For each enregitrement de ma requ=EAte
TotalPrio=3D 0
Case Secu.value =3D true
TotalPrio =3D TotalPrio + NSecurite
Case Design.value =3D true
TotalPrio =3D TotalPrio + NDesign
Case ReducCout.value =3D true
TotalPrio =3D TotalPrio + NReducCout
Case Service.value =3D true
TotalPrio =3D TotalPrio + NService
Case NewProd.value =3D true
TotalPrio =3D TotalPrio + NNouvProd
end Case
Find next
Cette action est irreversible, confirmez la suppression du commentaire ?
Signaler le commentaire
Veuillez sélectionner un problème
Nudité
Violence
Harcèlement
Fraude
Vente illégale
Discours haineux
Terrorisme
Autre
John Fuss
dim cnn as new adodb.connection dim rst as new adodb.recordset
set cnn = currentprojet.connection rst.open "SELECT ......", cnn, adOpenStatic, adLockPessimistic do until rst.eof 'ton traitement ici en utilisant rst.fields("NoDct").Value par exemple
rst.movenext loop
John
oublie pas de référencer ADO !!! (microsoft activex data objects 2.1 Library)
"Laurent :)" a écrit dans le message de news:15ece01c41e36$073a1210$ Bonjour j'ai la requête suivante: SELECT DemChTech.NoDct, DemChTech.Secu, PrioriteDCT.NSecurite, DemChTech.Design, PrioriteDCT.NDesign, DemChTech.ReducCout, PrioriteDCT.NReducCout, DemChTech.Service, PrioriteDCT.NService, DemChTech.NewProd, PrioriteDCT.NNouvProd, DemChTech.TotalPrio FROM PrioriteDCT INNER JOIN DemChTech ON PrioriteDCT.noauto = DemChTech.NoPrio;
J'aimerais dans cette requête faire en code: For each enregitrement de ma requête TotalPrio= 0 Case Secu.value = true TotalPrio = TotalPrio + NSecurite Case Design.value = true TotalPrio = TotalPrio + NDesign Case ReducCout.value = true TotalPrio = TotalPrio + NReducCout Case Service.value = true TotalPrio = TotalPrio + NService Case NewProd.value = true TotalPrio = TotalPrio + NNouvProd end Case Find next
Merci de m'aider!
dim cnn as new adodb.connection
dim rst as new adodb.recordset
set cnn = currentprojet.connection
rst.open "SELECT ......", cnn, adOpenStatic, adLockPessimistic
do until rst.eof
'ton traitement ici en utilisant rst.fields("NoDct").Value par exemple
rst.movenext
loop
John
oublie pas de référencer ADO !!! (microsoft activex data objects 2.1
Library)
"Laurent :)" <anonymous@discussions.microsoft.com> a écrit dans le message
de news:15ece01c41e36$073a1210$a001280a@phx.gbl...
Bonjour j'ai la requête suivante:
SELECT DemChTech.NoDct, DemChTech.Secu,
PrioriteDCT.NSecurite, DemChTech.Design,
PrioriteDCT.NDesign, DemChTech.ReducCout,
PrioriteDCT.NReducCout, DemChTech.Service,
PrioriteDCT.NService, DemChTech.NewProd,
PrioriteDCT.NNouvProd, DemChTech.TotalPrio
FROM PrioriteDCT INNER JOIN DemChTech ON
PrioriteDCT.noauto = DemChTech.NoPrio;
J'aimerais dans cette requête faire en code:
For each enregitrement de ma requête
TotalPrio= 0
Case Secu.value = true
TotalPrio = TotalPrio + NSecurite
Case Design.value = true
TotalPrio = TotalPrio + NDesign
Case ReducCout.value = true
TotalPrio = TotalPrio + NReducCout
Case Service.value = true
TotalPrio = TotalPrio + NService
Case NewProd.value = true
TotalPrio = TotalPrio + NNouvProd
end Case
Find next
dim cnn as new adodb.connection dim rst as new adodb.recordset
set cnn = currentprojet.connection rst.open "SELECT ......", cnn, adOpenStatic, adLockPessimistic do until rst.eof 'ton traitement ici en utilisant rst.fields("NoDct").Value par exemple
rst.movenext loop
John
oublie pas de référencer ADO !!! (microsoft activex data objects 2.1 Library)
"Laurent :)" a écrit dans le message de news:15ece01c41e36$073a1210$ Bonjour j'ai la requête suivante: SELECT DemChTech.NoDct, DemChTech.Secu, PrioriteDCT.NSecurite, DemChTech.Design, PrioriteDCT.NDesign, DemChTech.ReducCout, PrioriteDCT.NReducCout, DemChTech.Service, PrioriteDCT.NService, DemChTech.NewProd, PrioriteDCT.NNouvProd, DemChTech.TotalPrio FROM PrioriteDCT INNER JOIN DemChTech ON PrioriteDCT.noauto = DemChTech.NoPrio;
J'aimerais dans cette requête faire en code: For each enregitrement de ma requête TotalPrio= 0 Case Secu.value = true TotalPrio = TotalPrio + NSecurite Case Design.value = true TotalPrio = TotalPrio + NDesign Case ReducCout.value = true TotalPrio = TotalPrio + NReducCout Case Service.value = true TotalPrio = TotalPrio + NService Case NewProd.value = true TotalPrio = TotalPrio + NNouvProd end Case Find next
Merci de m'aider!
Laurent:\)
Merci, j'essaie ça!
-----Message d'origine----- dim cnn as new adodb.connection dim rst as new adodb.recordset
set cnn = currentprojet.connection rst.open "SELECT ......", cnn, adOpenStatic, adLockPessimistic
do until rst.eof 'ton traitement ici en utilisant rst.fields ("NoDct").Value par exemple
rst.movenext loop
John
oublie pas de référencer ADO !!! (microsoft activex data objects 2.1
Library)
"Laurent :)" a écrit dans le message
de news:15ece01c41e36$073a1210$ Bonjour j'ai la requête suivante: SELECT DemChTech.NoDct, DemChTech.Secu, PrioriteDCT.NSecurite, DemChTech.Design, PrioriteDCT.NDesign, DemChTech.ReducCout, PrioriteDCT.NReducCout, DemChTech.Service, PrioriteDCT.NService, DemChTech.NewProd, PrioriteDCT.NNouvProd, DemChTech.TotalPrio FROM PrioriteDCT INNER JOIN DemChTech ON PrioriteDCT.noauto = DemChTech.NoPrio;
J'aimerais dans cette requête faire en code: For each enregitrement de ma requête TotalPrio= 0 Case Secu.value = true TotalPrio = TotalPrio + NSecurite Case Design.value = true TotalPrio = TotalPrio + NDesign Case ReducCout.value = true TotalPrio = TotalPrio + NReducCout Case Service.value = true TotalPrio = TotalPrio + NService Case NewProd.value = true TotalPrio = TotalPrio + NNouvProd end Case Find next
Merci de m'aider!
.
Merci, j'essaie ça!
-----Message d'origine-----
dim cnn as new adodb.connection
dim rst as new adodb.recordset
set cnn = currentprojet.connection
rst.open "SELECT ......", cnn, adOpenStatic,
adLockPessimistic
do until rst.eof
'ton traitement ici en utilisant rst.fields
("NoDct").Value par exemple
rst.movenext
loop
John
oublie pas de référencer ADO !!! (microsoft activex data
objects 2.1
Library)
"Laurent :)" <anonymous@discussions.microsoft.com> a
écrit dans le message
de news:15ece01c41e36$073a1210$a001280a@phx.gbl...
Bonjour j'ai la requête suivante:
SELECT DemChTech.NoDct, DemChTech.Secu,
PrioriteDCT.NSecurite, DemChTech.Design,
PrioriteDCT.NDesign, DemChTech.ReducCout,
PrioriteDCT.NReducCout, DemChTech.Service,
PrioriteDCT.NService, DemChTech.NewProd,
PrioriteDCT.NNouvProd, DemChTech.TotalPrio
FROM PrioriteDCT INNER JOIN DemChTech ON
PrioriteDCT.noauto = DemChTech.NoPrio;
J'aimerais dans cette requête faire en code:
For each enregitrement de ma requête
TotalPrio= 0
Case Secu.value = true
TotalPrio = TotalPrio + NSecurite
Case Design.value = true
TotalPrio = TotalPrio + NDesign
Case ReducCout.value = true
TotalPrio = TotalPrio + NReducCout
Case Service.value = true
TotalPrio = TotalPrio + NService
Case NewProd.value = true
TotalPrio = TotalPrio + NNouvProd
end Case
Find next
-----Message d'origine----- dim cnn as new adodb.connection dim rst as new adodb.recordset
set cnn = currentprojet.connection rst.open "SELECT ......", cnn, adOpenStatic, adLockPessimistic
do until rst.eof 'ton traitement ici en utilisant rst.fields ("NoDct").Value par exemple
rst.movenext loop
John
oublie pas de référencer ADO !!! (microsoft activex data objects 2.1
Library)
"Laurent :)" a écrit dans le message
de news:15ece01c41e36$073a1210$ Bonjour j'ai la requête suivante: SELECT DemChTech.NoDct, DemChTech.Secu, PrioriteDCT.NSecurite, DemChTech.Design, PrioriteDCT.NDesign, DemChTech.ReducCout, PrioriteDCT.NReducCout, DemChTech.Service, PrioriteDCT.NService, DemChTech.NewProd, PrioriteDCT.NNouvProd, DemChTech.TotalPrio FROM PrioriteDCT INNER JOIN DemChTech ON PrioriteDCT.noauto = DemChTech.NoPrio;
J'aimerais dans cette requête faire en code: For each enregitrement de ma requête TotalPrio= 0 Case Secu.value = true TotalPrio = TotalPrio + NSecurite Case Design.value = true TotalPrio = TotalPrio + NDesign Case ReducCout.value = true TotalPrio = TotalPrio + NReducCout Case Service.value = true TotalPrio = TotalPrio + NService Case NewProd.value = true TotalPrio = TotalPrio + NNouvProd end Case Find next
Merci de m'aider!
.
Patatrac92
bonjour,
tu peux utiliser un test de ce genre
SELECT DemChTech.NoDct, DemChTech.Secu, PrioriteDCT.NSecurite, DemChTech.Design, PrioriteDCT.NDesign, DemChTech.ReducCout, PrioriteDCT.NReducCout, DemChTech.Service, PrioriteDCT.NService, DemChTech.NewProd, PrioriteDCT.NNouvProd, IIf([Secu],[TotalPrio] + [NSecurite] ,IIf([Design],[TotalPrio] + [NDesign] ,IIf([Reduc],[TotalPrio] + [NReducCout] , IIf([Service],[TotalPrio] + [NService] ,IIf([NewProd ],[TotalPrio] + [NNouvProd] ,[totalPrio]))))) ..... mais il existe peut être qqchose de + simple
"Laurent :)" a écrit dans le message de news:15ece01c41e36$073a1210$ Bonjour j'ai la requête suivante: SELECT DemChTech.NoDct, DemChTech.Secu, PrioriteDCT.NSecurite, DemChTech.Design, PrioriteDCT.NDesign, DemChTech.ReducCout, PrioriteDCT.NReducCout, DemChTech.Service, PrioriteDCT.NService, DemChTech.NewProd, PrioriteDCT.NNouvProd, DemChTech.TotalPrio FROM PrioriteDCT INNER JOIN DemChTech ON PrioriteDCT.noauto = DemChTech.NoPrio;
J'aimerais dans cette requête faire en code: For each enregitrement de ma requête TotalPrio= 0 Case Secu.value = true TotalPrio = TotalPrio + NSecurite Case Design.value = true TotalPrio = TotalPrio + NDesign Case ReducCout.value = true TotalPrio = TotalPrio + NReducCout Case Service.value = true TotalPrio = TotalPrio + NService Case NewProd.value = true TotalPrio = TotalPrio + NNouvProd end Case Find next
Merci de m'aider!
bonjour,
tu peux utiliser un test de ce genre
SELECT DemChTech.NoDct, DemChTech.Secu,
PrioriteDCT.NSecurite, DemChTech.Design,
PrioriteDCT.NDesign, DemChTech.ReducCout,
PrioriteDCT.NReducCout, DemChTech.Service,
PrioriteDCT.NService, DemChTech.NewProd,
PrioriteDCT.NNouvProd,
IIf([Secu],[TotalPrio] + [NSecurite] ,IIf([Design],[TotalPrio] + [NDesign]
,IIf([Reduc],[TotalPrio] + [NReducCout] ,
IIf([Service],[TotalPrio] + [NService] ,IIf([NewProd ],[TotalPrio] +
[NNouvProd] ,[totalPrio])))))
.....
mais il existe peut être qqchose de + simple
"Laurent :)" <anonymous@discussions.microsoft.com> a écrit dans le message
de news:15ece01c41e36$073a1210$a001280a@phx.gbl...
Bonjour j'ai la requête suivante:
SELECT DemChTech.NoDct, DemChTech.Secu,
PrioriteDCT.NSecurite, DemChTech.Design,
PrioriteDCT.NDesign, DemChTech.ReducCout,
PrioriteDCT.NReducCout, DemChTech.Service,
PrioriteDCT.NService, DemChTech.NewProd,
PrioriteDCT.NNouvProd, DemChTech.TotalPrio
FROM PrioriteDCT INNER JOIN DemChTech ON
PrioriteDCT.noauto = DemChTech.NoPrio;
J'aimerais dans cette requête faire en code:
For each enregitrement de ma requête
TotalPrio= 0
Case Secu.value = true
TotalPrio = TotalPrio + NSecurite
Case Design.value = true
TotalPrio = TotalPrio + NDesign
Case ReducCout.value = true
TotalPrio = TotalPrio + NReducCout
Case Service.value = true
TotalPrio = TotalPrio + NService
Case NewProd.value = true
TotalPrio = TotalPrio + NNouvProd
end Case
Find next
SELECT DemChTech.NoDct, DemChTech.Secu, PrioriteDCT.NSecurite, DemChTech.Design, PrioriteDCT.NDesign, DemChTech.ReducCout, PrioriteDCT.NReducCout, DemChTech.Service, PrioriteDCT.NService, DemChTech.NewProd, PrioriteDCT.NNouvProd, IIf([Secu],[TotalPrio] + [NSecurite] ,IIf([Design],[TotalPrio] + [NDesign] ,IIf([Reduc],[TotalPrio] + [NReducCout] , IIf([Service],[TotalPrio] + [NService] ,IIf([NewProd ],[TotalPrio] + [NNouvProd] ,[totalPrio]))))) ..... mais il existe peut être qqchose de + simple
"Laurent :)" a écrit dans le message de news:15ece01c41e36$073a1210$ Bonjour j'ai la requête suivante: SELECT DemChTech.NoDct, DemChTech.Secu, PrioriteDCT.NSecurite, DemChTech.Design, PrioriteDCT.NDesign, DemChTech.ReducCout, PrioriteDCT.NReducCout, DemChTech.Service, PrioriteDCT.NService, DemChTech.NewProd, PrioriteDCT.NNouvProd, DemChTech.TotalPrio FROM PrioriteDCT INNER JOIN DemChTech ON PrioriteDCT.noauto = DemChTech.NoPrio;
J'aimerais dans cette requête faire en code: For each enregitrement de ma requête TotalPrio= 0 Case Secu.value = true TotalPrio = TotalPrio + NSecurite Case Design.value = true TotalPrio = TotalPrio + NDesign Case ReducCout.value = true TotalPrio = TotalPrio + NReducCout Case Service.value = true TotalPrio = TotalPrio + NService Case NewProd.value = true TotalPrio = TotalPrio + NNouvProd end Case Find next
Merci de m'aider!
ReBonjour! J'ai une erreure de syntaxe qui pointe sur la ligne du INNER JOIN. Je site exactement: Erreur de syntaxe (opérateur abscent) dans l'experession 'DemChTech.totalPrioFROM DemChtech INNER JOIN PrioriteDCT ON DemChTech.Noprio = PrioriteDCT.noauto'
"INNER JOIN PrioriteDCT ON DemChTech.NoPrio = PrioriteDCT.noauto;", cnn, adOpenStatic, adLockPessimistic
Merci de m'aider!
ReBonjour! J'ai une erreure de syntaxe qui pointe sur la
ligne du INNER JOIN.
Je site exactement:
Erreur de syntaxe (opérateur abscent) dans
l'experession 'DemChTech.totalPrioFROM DemChtech INNER
JOIN PrioriteDCT ON DemChTech.Noprio = PrioriteDCT.noauto'
ReBonjour! J'ai une erreure de syntaxe qui pointe sur la ligne du INNER JOIN. Je site exactement: Erreur de syntaxe (opérateur abscent) dans l'experession 'DemChTech.totalPrioFROM DemChtech INNER JOIN PrioriteDCT ON DemChTech.Noprio = PrioriteDCT.noauto'
"INNER JOIN PrioriteDCT ON DemChTech.NoPrio = PrioriteDCT.noauto;", cnn, adOpenStatic, adLockPessimistic
Merci de m'aider!
Eric
Bonjour
Il manque une espace devant le From DemChTech.totalPrio FROM DemChtech INNER
A+ Eric
écrivait news:1a80f01c41e40$1e4e3a80 $:
ReBonjour! J'ai une erreure de syntaxe qui pointe sur la ligne du INNER JOIN. Je site exactement: Erreur de syntaxe (opérateur abscent) dans l'experession 'DemChTech.totalPrioFROM DemChtech INNER JOIN PrioriteDCT ON DemChTech.Noprio = PrioriteDCT.noauto'
ReBonjour! J'ai une erreure de syntaxe qui pointe sur la
ligne du INNER JOIN.
Je site exactement:
Erreur de syntaxe (opérateur abscent) dans
l'experession 'DemChTech.totalPrioFROM DemChtech INNER
JOIN PrioriteDCT ON DemChTech.Noprio = PrioriteDCT.noauto'
Il manque une espace devant le From DemChTech.totalPrio FROM DemChtech INNER
A+ Eric
écrivait news:1a80f01c41e40$1e4e3a80 $:
ReBonjour! J'ai une erreure de syntaxe qui pointe sur la ligne du INNER JOIN. Je site exactement: Erreur de syntaxe (opérateur abscent) dans l'experession 'DemChTech.totalPrioFROM DemChtech INNER JOIN PrioriteDCT ON DemChTech.Noprio = PrioriteDCT.noauto'
"INNER JOIN PrioriteDCT ON DemChTech.NoPrio = PrioriteDCT.noauto;", cnn, adOpenStatic, adLockPessimistic
Merci de m'aider!
Eric
Re il manque aussi un espace avant le Inner Join. Derriere le Inner join c'est tout bon sous reserve que les champs NoPrio et noAuto soit de meme nature. A+ Eric
écrivait news:1a80f01c41e40$1e4e3a80 $:
ReBonjour! J'ai une erreure de syntaxe qui pointe sur la ligne du INNER JOIN. Je site exactement: Erreur de syntaxe (opérateur abscent) dans l'experession 'DemChTech.totalPrioFROM DemChtech INNER JOIN PrioriteDCT ON DemChTech.Noprio = PrioriteDCT.noauto'
"INNER JOIN PrioriteDCT ON DemChTech.NoPrio = PrioriteDCT.noauto;", cnn, adOpenStatic, adLockPessimistic
Merci de m'aider!
Re
il manque aussi un espace avant le Inner Join.
Derriere le Inner join c'est tout bon sous reserve que les champs NoPrio et
noAuto soit de meme nature.
A+
Eric
ReBonjour! J'ai une erreure de syntaxe qui pointe sur la
ligne du INNER JOIN.
Je site exactement:
Erreur de syntaxe (opérateur abscent) dans
l'experession 'DemChTech.totalPrioFROM DemChtech INNER
JOIN PrioriteDCT ON DemChTech.Noprio = PrioriteDCT.noauto'
Re il manque aussi un espace avant le Inner Join. Derriere le Inner join c'est tout bon sous reserve que les champs NoPrio et noAuto soit de meme nature. A+ Eric
écrivait news:1a80f01c41e40$1e4e3a80 $:
ReBonjour! J'ai une erreure de syntaxe qui pointe sur la ligne du INNER JOIN. Je site exactement: Erreur de syntaxe (opérateur abscent) dans l'experession 'DemChTech.totalPrioFROM DemChtech INNER JOIN PrioriteDCT ON DemChTech.Noprio = PrioriteDCT.noauto'