Thanks for the post, I was having this exact problem and your post save me a bunch of time trying to figure out what was going on. I looked at the expression that Infopath came up with and thought to myself that the string-compare function looked funny for doing number comparisons.