hello everyone
i need your help on this if you can
it was working, and somehow, for a reason i don't know
it stopped working
i have a recordset, and i am trying to sum the values in the fields, (the fields name is [closed 1], [closed 2]...
startP is an integer as well as endP
knowing that sometimes i may have no values at all in these fields, i had to use "if" in order to put the value 0 instead of Null, however, what is weird is that when it is null, he doesn't go inside the if at all
(the closed fields have dbinteger as type)
For j = startP To endP
RS.Edit
clsFieldname = "[closed " & j & "]"
If ((RS.Fields(closedFieldname) = Null)) Then
RS.Fields(closedFieldname) = 0
End If
k = k + RS.Fields(clsFieldname)
Next j
can anyone help me on this?
thank you
Lina Chebli
i need your help on this if you can
it was working, and somehow, for a reason i don't know
it stopped working
i have a recordset, and i am trying to sum the values in the fields, (the fields name is [closed 1], [closed 2]...
startP is an integer as well as endP
knowing that sometimes i may have no values at all in these fields, i had to use "if" in order to put the value 0 instead of Null, however, what is weird is that when it is null, he doesn't go inside the if at all
(the closed fields have dbinteger as type)
For j = startP To endP
RS.Edit
clsFieldname = "[closed " & j & "]"
If ((RS.Fields(closedFieldname) = Null)) Then
RS.Fields(closedFieldname) = 0
End If
k = k + RS.Fields(clsFieldname)
Next j
can anyone help me on this?
thank you
Lina Chebli