Pb syntaxe SQL
bon ben voila g un pb de syntaxe voila le programme me genere une erreur (access95) sur mon for et je sait po pourquioi si qu il pouvait m'aider ca serrer super
SELECT stand2.dates, stand2.heure, stand2.variable, stand2.groupe, stand2.opérateur, stand2.nom, stand2.libellé_alarme
FROM stand2
GROUP BY stand2.dates, stand2.heure, stand2.variable, stand2.groupe, stand2.opérateur, stand2.nom, stand2.libellé_alarme
HAVING (((stand2.groupe)=[Formulaires]![Formulaire2]![bat2])) AND (stand2.libellé_alarme)=Pos1= Instr(Expr, " ")
For i=len(expr) to 1 step -1
if mid(Expr,i,1) = " " then Pos2=i
next i
Etage = mid(Expr, pos1, pos2-pos1)
SELECT stand2.dates, stand2.heure, stand2.variable, stand2.groupe, stand2.opérateur, stand2.nom, stand2.libellé_alarme
FROM stand2
GROUP BY stand2.dates, stand2.heure, stand2.variable, stand2.groupe, stand2.opérateur, stand2.nom, stand2.libellé_alarme
HAVING (((stand2.groupe)=[Formulaires]![Formulaire2]![bat2])) AND (stand2.libellé_alarme)=Pos1= Instr(Expr, " ")
For i=len(expr) to 1 step -1
if mid(Expr,i,1) = " " then Pos2=i
next i
Etage = mid(Expr, pos1, pos2-pos1)
3 réponses
-
ContributeurBa ouais, ca passe pas dans les requetes SQL ca...
ö,ö
\_/ -
ContributeurOui par exemple...
Ca marcherait (a la syntaxe pres) en PL/SQL mais sous access :-(
Tu colles ca dans un module ou eventuellement une macro selon tes preferences...
ö,ö
\_/ -
jpo trop compris tu dit que ca devrait marcher sous access c ca