hi again
this is my 2nd question today i am sorry
well
this question should be easier to deal with
u see i am trying to create a recordset from a table, whereby the value of courrier is H(it is obtained from the fom, H can be 1 or 2 or 3)
is it possible to do this?
coz i on t think thati my code is really doingwhat i want
can u help?
thank you
Lanelouna
Set RS1 = db.OpenRecordset("A0TDEFAUT_SOUSPROT", dbOpenDynaset)
With RS1
.FindFirst "COURRIER = " & H & ""
.FindNext "COURRIER = " & H & ""
Do Until RS1.EOF
For i = 0 To nbr
If (RS1!Classe = mesClasses(i)) Then
dj = dj + 1
End If
Next i
RS1.MoveNext
Loop
End With
RS1.Close
this is my 2nd question today i am sorry
well
this question should be easier to deal with
u see i am trying to create a recordset from a table, whereby the value of courrier is H(it is obtained from the fom, H can be 1 or 2 or 3)
is it possible to do this?
coz i on t think thati my code is really doingwhat i want
can u help?
thank you
Lanelouna
Set RS1 = db.OpenRecordset("A0TDEFAUT_SOUSPROT", dbOpenDynaset)
With RS1
.FindFirst "COURRIER = " & H & ""
.FindNext "COURRIER = " & H & ""
Do Until RS1.EOF
For i = 0 To nbr
If (RS1!Classe = mesClasses(i)) Then
dj = dj + 1
End If
Next i
RS1.MoveNext
Loop
End With
RS1.Close