Information générale
Catégorie:
Codage, syntaxe et commandes
Well, here's the code in my valid event of the combo:
WITH This
IF This.ListIndex = 0 AND !EMPTY( This.DisplayValue )
*** The user typed in an entry not in the list
*** code here to add the new entry to the combo's RowSource
This.AddItem( This.DisplayValue )
This.Requery()
This.Refresh()
ENDIF
ENDWITH
The problem actually is that the choices aren't staying permanently. When I exit the form and run again, all choices are gone. After I fix that, then I'll address the removal problem.
>Did you enter them in the Properties sheet, or populate the combo programatically?
>
>>OK, here's a dumb question. Once I have it working , how do I remove the test values?
>>x
>>
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement