>Hello everyone:
>How to judge the value in one fieds is only?
If you mean that you want to have a value in one field, or in the other, but not in both, check for:
empty(Field1) # empty(Field2)
# is equivalent to the XOR (exclusive-or) operator (missing in VFP), but you have to be careful with order-of-precedence.
HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)