I'm having trouble with this...
I have some fields say
FIELD1
FIELD2
FIELD3
FIELD4
FIELD5
TOTAL
lets say the user types values into Field2, Field3, Field4
but leaves field1 and field5 blank...
WHen I calculate the total I want it to work without having to type 0's into the blank fields..
I'm trying to do it in VB code but it doesn't seem to work..
I have it something like this
if(Field1 <> Null)then
TOTAL = TOTAL + Field1
else
'ITs null dont add it to total
endif
Why doesn't that work? it never runs the code.
I have some fields say
FIELD1
FIELD2
FIELD3
FIELD4
FIELD5
TOTAL
lets say the user types values into Field2, Field3, Field4
but leaves field1 and field5 blank...
WHen I calculate the total I want it to work without having to type 0's into the blank fields..
I'm trying to do it in VB code but it doesn't seem to work..
I have it something like this
if(Field1 <> Null)then
TOTAL = TOTAL + Field1
else
'ITs null dont add it to total
endif
Why doesn't that work? it never runs the code.