Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo problem. Please help.
Message
 
 
À
29/03/2000 03:22:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00351372
Message ID:
00352042
Vues:
25
Hi Marcia,

Thanks a lot for your response. Following is the code I used to add a new customer to the customer_view(this is a remote_view, PK: customer_id - automatic number):
WITH Thisformset.Form2
     Insert into customer_view(cus_company_name,;
                               cus_company_website,;
                               cus_address,; 
                               cus_city,;
                               cus_zip,;
                               cus_state);
             value (.txtCompanyName.value,;
                    .txtWebSite.value,;
                    .txtAddress.value,;
                    .txtCity.value,;
                    .txtZip.value,;
                    .cbState.value)
      Messagebox("The new customer is added into the database.",;
                 48, "Addition Message")
ENDWITH
Thisformset.Form1.cboCustomerName.Requery
I also set up the cboCustomerName with:
BoundTo = .T.
ControlSource = None
RowSource = customer_view.cus_company_name, customer_id
RowSourceType = 6-Fields
Could this be clear enough? One again, thank you very much for your help.

Jenny.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform