Information générale
Catégorie:
Codage, syntaxe et commandes
>Barbara-
>
>Thanks for the reply. I have been trying to get several things to work but have been unsuccessful. Here is what I have now:
>
>1. I defined a cursor called vex_cur with 2 columns (vex_code, vex_desc) in the init event of the form.
>
>2. In the combobox I have the following defined:
> - columncount: 2
> - controlsource: vext.vext_code (table where the value will be stored)
> - rowsource: vex_cur
> - rowsourceType: 2- Alias
> - Style: 2-Dropdown list
>
>I cannot get the combobox to drop down in the grid. Also, if the user enters something that is not in the list I will add it to the cursor in the valid event (I assume this is the right way to do it). I am hoping that I can get this figured out and appreciate your help.
>
>Have a good day-
>
>Geoff
Geoff,
Set Column.controlsource to vext.vext_code (table where the value will be
stored)
Set Column.Sparse = .F.
Set Combobox.rowsource = vex_cur.vex_desc, vex_code
Set Combobox.BoundColumn = 2
Set Combobox.ColumnCount = 2
Set Combobox.Columnwidths = 200,0
Hope this will help you.
Charlie
Précédent
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