Shawn and Les,I have tried both ideas. Setting $chk to "" and to "test" at the beginning of the code.
I have added the CASE 1 and $chk = "" and "test"
Neither of these items worked. That is why I'm lost as to what is happening.
I am running v3.63 for sure and have been now for at least a year.
I have manipulated this code back and forth and this way and that way and I still get inaccurate results. I can probably make a work-around now, but I am puzzled and curious as to what is wrong with the code in the first place.
Les, what do you mean use multiple IF statements? A CASE "should" be able to do the same thing. If CASE is at fault, then is this an internal bug in KiXtart v3.63? or what is going on.
Jochen, what do you think? Any suggestions...?
MCA are you lurking out there yet back from vacation?