cfcProgrammer
Programmer
Hi,
Please be patient. I am still fairly new to this world. I come from an RPG AS400 background, so this is a little different.
I am trying to calculate a field from a record set that I loaded into an array(repArrRS).
Here is the calculation I had originally.
BUT I was getting an invalid use of Null. Cdbl.
So, I went to the net and searched on this error and this is what I came up with.
I am now getting a syntax error. I can't seem to see what the problem is and I've had a few people here at the office take a look... no one is quite sure what needs to be done to fix it.
Could someone please help me try to figure this out. If you feel there is a better way to accomplish the calculation, taking Nulls into account, I am open to suggestions.
The only thing I ask is that you explain why or how the statment works.. that way... I'm learning the reasoning behind it and I can share with the office... and next time any of us run into the same problem we'll know what to do.
Thanks so much... as always... your help is greatly appreciated!! :->
cfcProgrammer
Please be patient. I am still fairly new to this world. I come from an RPG AS400 background, so this is a little different.
I am trying to calculate a field from a record set that I loaded into an array(repArrRS).
Here is the calculation I had originally.
Code:
<%TotalSgFor = TotalSgFor + CDbl(repArrRS(6,repRow))%>
BUT I was getting an invalid use of Null. Cdbl.
So, I went to the net and searched on this error and this is what I came up with.
Code:
TotalSgFor = iif(IsNull(repArrRS(6,reprow)),0,repArrRS(6,reprow)) + TotalSgFor
I am now getting a syntax error. I can't seem to see what the problem is and I've had a few people here at the office take a look... no one is quite sure what needs to be done to fix it.
Could someone please help me try to figure this out. If you feel there is a better way to accomplish the calculation, taking Nulls into account, I am open to suggestions.
The only thing I ask is that you explain why or how the statment works.. that way... I'm learning the reasoning behind it and I can share with the office... and next time any of us run into the same problem we'll know what to do.
Thanks so much... as always... your help is greatly appreciated!! :->
cfcProgrammer