>Hi,
>
>I have a combobox populated with a view. In some situations, one item should not be selected. I have two options :
>
>1) Disable this item in the combox list.
>2) Check the value entered and give an error message.
>
>In the first case I don't know how to do it.
If your view is not very big:
Select view1
Scan
IF view1.field1=...
Thisform.Combo1.AddItem("\"+view1.field1)
Else
Thisform.Combo1.AddItem(view1.field1)
Endif
EndScan
Edward Pikman
Independent Consultant