>>>I could not find this info in Help on Format, though I remember, I saw it there. I have a field Status in a table, which could be either A or I (Active/Inactive). I don't want to use combobox for this, so I need to restict textbox values. I can do it in KeyPress event, but I want something simpler...
>>>
>>>Could you please help me?
>>
>>A few ideas:
>>- change your label to "Active?" and then use inputmask Y on the textbox to restrict to Y or N
>
>>- use a checkbox. Check indicates Active, no check in InActive
>
>I thought, that CheckBox could be always bound to Logical field, while this field is Char1. If I left it unbinding, I have to write some code...
>
>>Why don't you want to use a combo?
>
>Just my laziness :) Besides, Combo takes more space and not always convenient.
I think you can make the Combo about as small as you can a TextBox. You can also easily have three options: "I", "A" (or whatever the options were), and " ".
As to laziness, I believe inheritance can help you foster your laziness. At least, if you have similar requirements frequently.
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)