Thanks all, an old lesson relearned.
>>I was going to implement "IF MOFFICE <> 'SN' OR MOFFICE <> 'VS'" but I had to resort to "IF MOFFICE <> 'SN' AND MOFFICE <> 'VS'". The idea is to only allow entry of SN or VS, thus my reason for attempting to use OR instead of AND.
>
>Tim,
>Multipl solutions as always :)
>
>if !(MSOFFICE='SN' or MSOFFICE='VS')
>if MSOFFICE#'SN' and MSOFFICE#'VS'
>
>I like Rick's here :
>If !inlist(MSOFFICE,'SN','VS')
>if !MSOFFICE$' SN VS '
>
>You say entry then I assume it's something like a textbox. Then just prevent user's input :)
>
>Textbox.Format='M'
>Textbox.InputMask = 'SN,VS'
>
>Cetin
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."