hello
can ayone help me on this small problem
i have this code which is not working: it tells me that there are too few parameters, (the line where the error is, is in bold)
Set RS = db.OpenRecordset("CCA3TSurpIVDR", dbOpenDynaset)
Do Until RS.EOF
RS.Edit
lIVDR = RS!IVDR
strSQL = "SELECT CCA3TSurDefIfFerme.IVDR, CCA3TSurDefIfFerme.SCOD_CLR, CCA3TSurDefIfFerme.IF_CLASSE, "
For i = 0 To nbr
Classe = classesOuvertes(i)
strSQL = strSQL & "CCA3TSurDefIfFerme.[IF_OUVERT_" & Classe & "], "
Next i
strSQL = Left(strSQL, Len(strSQL) - 2)
strSQL = strSQL & " FROM CCA3TSurDefIfFerme"
strSQL = strSQL & " WHERE (((CCA3TSurDefIfFerme.IVDR)= lIVDR));"
Set RS2 = db.OpenRecordset(strSQL, dbOpenDynaset)
Do Until RS2.EOF
etc
in fact this is not woking because i am using WHERE (((CCA3TSurDefIfFerme.IVDR)= lIVDR));"
had i wrote
WHERE (((CCA3TSurDefIfFerme.IVDR)= 6000));"
it works
is there way to resolve this error
thanks in advance
Lina Chebli
can ayone help me on this small problem
i have this code which is not working: it tells me that there are too few parameters, (the line where the error is, is in bold)
Set RS = db.OpenRecordset("CCA3TSurpIVDR", dbOpenDynaset)
Do Until RS.EOF
RS.Edit
lIVDR = RS!IVDR
strSQL = "SELECT CCA3TSurDefIfFerme.IVDR, CCA3TSurDefIfFerme.SCOD_CLR, CCA3TSurDefIfFerme.IF_CLASSE, "
For i = 0 To nbr
Classe = classesOuvertes(i)
strSQL = strSQL & "CCA3TSurDefIfFerme.[IF_OUVERT_" & Classe & "], "
Next i
strSQL = Left(strSQL, Len(strSQL) - 2)
strSQL = strSQL & " FROM CCA3TSurDefIfFerme"
strSQL = strSQL & " WHERE (((CCA3TSurDefIfFerme.IVDR)= lIVDR));"
Set RS2 = db.OpenRecordset(strSQL, dbOpenDynaset)
Do Until RS2.EOF
etc
in fact this is not woking because i am using WHERE (((CCA3TSurDefIfFerme.IVDR)= lIVDR));"
had i wrote
WHERE (((CCA3TSurDefIfFerme.IVDR)= 6000));"
it works
is there way to resolve this error
thanks in advance
Lina Chebli