Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select statement HELP for combo
Message
De
14/08/1999 01:03:15
Peter Brama
West Pointe Enterprises
Detroit, Michigan, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Select statement HELP for combo
Divers
Thread ID:
00253732
Message ID:
00253732
Vues:
58
I have a form that has two primary combo boxes on it. The first selects the FIRM to use for the form. The second is used to select the PARTNER from that firm to use on the form. I would like the PARTNER combo to only list those PARTNERS that are assigned to that firm and not all the PARTNERS in the system.

The FIRM file has a 'FIRMID' that is unique. The PARTNER file also has a 'FIRMID' field that links it to the appropriate firm.

I assume that the ROWSOURCE for the PARTNER combo should be set for SQL and I should create an SQL statement that will work for this instance. I tried the following....

Select partner.partnername,partner.partnerid, firm.firmid from partner,firm where partner.firmid=firm.firmid into cursor cur1 order by 1

This produces an error about the OPERAND.

Am I on the right track here? Also, should I have the BOUND to column set? The PARTNER.PARTNERID needs to be stored in the file that the FORM is filling in so I have the control source set for LOG.PARTNERID.

Thanks
Peter Brama
West Pointe Enterprises

VFP is getting easier but STILL alot to learn!!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform