I'm using
InfoPath 1020 and a browser based form.
In SQL i
have a table of Sales Opportunities details. I have created a form based on the
Database Template using that table as the main data source.
When I query
the data by Opportunity Name, it returns multiple records as there are several
opportunities with the same name.
To fix this
I am trying to create two query fields. The first drop down shows the Company
Names and the second would only show the Opportunity Names for that company.
But I cannot
figure out how to filter the Opportunity Name field based on the data in the
returned by the Company Name field.
The data
source for the Company Name includes a RecID. This same RecID is also in the
Opportunity Details table. I tried filtering the data in the Opportunity Name
field by the RecID but this returns ALL the Opportunities no matter what
Company Name is in the first drop down.
Any suggestions
on how to filter the data would be appreciated. Thanks.