Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo Value Capture
Message
De
16/03/2021 14:28:15
 
 
À
16/03/2021 13:07:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01679017
Message ID:
01679026
Vues:
42
Thanks Tamar & Dragan,

Will try both suggestions. Along with this one that appears to work on the surface:

if checkbox = 1, then cmb_dPhyAddr.ListItemId = cmb_MailAddr.ListItemId

Any issues with this logic or lack there of, lol??? Like I said, it appears to work, changes as I change the first combo field....
>Greetings all,
>
>When users are entering company data (physical address and mailing address), they have an option to click a checkbox that assigns the physical address to the shipping address.
>
>The state portion of teh address are combo boxes populated from a state local view (lv_State) that only has the State_code (i.e. WY) , and pk_st_id (i.e. 002).
>Combo box for State physical address named: cmb_PhyAddr
>Combo box for State mailing address named: cmb_MailAddr
>
>The combo box setting (for both ) are:
> boundToColumn: 2,
>boundTo: T,
>ControlSource: (fk_pk_id),
>rowSource: lv_State.State_Code, pk_state_id
Thanks Tamar >RowSourceType: 6-Fields
>
>When the user clicks the checkbox to assign the address data to the mailing address data, everything is populating except the combo box.
>
>thisform.cmb_mailAddr.value = thisform.cmb_PhyAddr.value ** current code where nothing happens

Since the second combo has a ControlSource, better to assign the value of the first combo to the second combo's ControlSource itself, not to Value:
REPLACE fk_pk_id WITH thisform.cmb_PhyAddr.value IN mailingaddress
or something like that.

Tamar
Thanks in Advance.

J. Turner
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform