J
jovobas
I've got a sales database with customer companies, products and
salespersons. These three tables are linked together in 2 joins, join
table S(pecialty): products and salespersons and join table O(rders):
companies and specialties. I have split the Specialty table from the
Orders table because of access rights.
For main purposes I created a form with the companies with an Orders
subform. The subform is in datasheet view for easy overview.
On this subform I have currently 1 combobox with the specialty i.e.
[salesperson Name] & " ("& [product Name] &")". In this combobox all
existing specialties occur. Now I want to redesign the subform to
having two comboboxes: one with the salespersons and one with the
products.
-- They should both be bound to the [Specialty] from the Orders table
(because they must display the correct info)
-- The first combobox should only list the salespersons (distinct?)
-- The second combobox, and this is my biggest problem, should only
contain products that are in the specialty of the salesperson for that
record.
And of course, if I add a new Order, choose a salesperson, this second
combobox should (re)populate accordingly.
In other words: I want a combobox that has a population that's based
on or dependent on the record data.
Thanks for any insights.
salespersons. These three tables are linked together in 2 joins, join
table S(pecialty): products and salespersons and join table O(rders):
companies and specialties. I have split the Specialty table from the
Orders table because of access rights.
For main purposes I created a form with the companies with an Orders
subform. The subform is in datasheet view for easy overview.
On this subform I have currently 1 combobox with the specialty i.e.
[salesperson Name] & " ("& [product Name] &")". In this combobox all
existing specialties occur. Now I want to redesign the subform to
having two comboboxes: one with the salespersons and one with the
products.
-- They should both be bound to the [Specialty] from the Orders table
(because they must display the correct info)
-- The first combobox should only list the salespersons (distinct?)
-- The second combobox, and this is my biggest problem, should only
contain products that are in the specialty of the salesperson for that
record.
And of course, if I add a new Order, choose a salesperson, this second
combobox should (re)populate accordingly.
In other words: I want a combobox that has a population that's based
on or dependent on the record data.
Thanks for any insights.