Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select statement HELP for combo
Message
From
14/08/1999 01:03:15
Peter Brama
West Pointe Enterprises
Detroit, Michigan, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Select statement HELP for combo
Miscellaneous
Thread ID:
00253732
Message ID:
00253732
Views:
57
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!!
Next
Reply
Map
View

Click here to load this message in the networking platform