General information
Category:
Forms & Form designer
Tim,
Can't you use the InteractiveChange of the combo box to track
things ?
Michel.
>I have a combo box that has a row source type of fields and the row source is the field name in the database. The database has codes that I want them to pick from. I put in the valid clause:
>
>if this.value != dbf.field
> return .f.
>else
> return .t.
>endif
>
>this works fine when I want them to only pick from the database. The problem is sometimes I want to let them put in a blank and still do the validation. So, I tried:
>
>if !empty(this.value) AND this.value != dbf.field
> return .f.
>else
> return .t.
>endif
>
>the problem is that if you put in a blank or an invalid code this.value is empty. How do I know if they left the field blank or put in an invalid code?
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only