cmd button - calculation

Hi JangJang,

If I follow the flow of this code for the "Calculation" button, the variable Counter is equal to zero and hence the overflow and null Value. It seems to not meet any condiditions (if then) earlier and does not count and therefore is zero? Is this what you were meant to do? :rolleyes:

Robert88
 
thanks for reply robert..
ok.. so how do i change my code toa make condition works and how to get value from query... thanks
 
Hi JangJang,

First, since your condition was not met a division by zero is possible, I would sort this out first then revisit the conditions, what are you saying in the condition statement (3 if then's) and think about what you are trying to accomplish?

Are you just trying to get the fields to match this criteria?

Robert88
 

Users who are viewing this thread

Back
Top Bottom