Hi Naomi,
- Add new record
- Requery Array for combo
- call combobox.Requery()
MartinJ
>Hi everybody,
>
>I posted a thread few weeks (?) ago about DisplayValue problem. We're hitting the same problem again.
>
>Here is the scenario:
>
>We insert a new record into several related tables. We're displaying information about Relation code in the combobox. The record source for the combobox is an array, that doesn't have an empty value.
>
>If we query this.combobox.DisplayValue, it contents a wrong information (the previous record value before we added a record). But if we do it like this:
>
>lcValue = this.combobox.value
>now access this.combobox.DisplayValue
>
>the DisplayValue is now set correctly.
>
>We had to use the same trick in a different place, because displayvalue was not set correctly.
>
>Did you ever observe something similar? Why DisplayValue is not reliable?
>
>Using VFP9, no SP.
>
>Thanks in advance.