purpledawn
Programmer
I am having troubles posting a value to a database from a DBLookupCombobox that has been updated at runtime.
If the value is set normally by the user selecting a value from the list in the combo box, the value posts OK.
If I set the KeyValue property at runtime (to a value that is in the KeyList), the KeyValue and Text property read that it has been changed. After I issue a Post command on the Dataset and then reread the KeyValue or Text property on the Combobox, it reverts to the value it was just before it was set at runtime! If I look at the record in the database, the value has not been updated properly. I am even issuing Refresh after setting KeyValue.
Someone, please tell me what I am missing!
If the value is set normally by the user selecting a value from the list in the combo box, the value posts OK.
If I set the KeyValue property at runtime (to a value that is in the KeyList), the KeyValue and Text property read that it has been changed. After I issue a Post command on the Dataset and then reread the KeyValue or Text property on the Combobox, it reverts to the value it was just before it was set at runtime! If I look at the record in the database, the value has not been updated properly. I am even issuing Refresh after setting KeyValue.
Someone, please tell me what I am missing!