P
Paul
Ok, so here's a good one:
I would like to dynamically limit and sort the choices shown in a combo
box based on a user's selection:
In the [RawMaterials] table I have the fields [RawMaterial#] (text) and
[RawMaterialTypeCode] (text from lookup).
In the finished products table I have the field [FinishedProduct#]
(text)
I am using a [Usage] table to create a many-to-many relationship. It
contains the fields [RawMaterial#] and [FinishedProduct#].
I am using a form and subform to enter data. The main form adds data to
the [RawMaterials] table while the subform adds data to the [Usage]
table (and is linked to the main form by [FinishedProduct#] field).
With me so far?
The subform's default view is "Continuous Forms" so allows entry of
several raw material codes, building up the association between Raw
Materials and Finished Products in the Usage table. [RawMaterial#]
values are unique across all types of raw materials. This means the
list is very long. I would like to use a combo box for selecting
[RawMaterial#] values but the length of the list is prohibitive.
I imagine a solution being to have one combo box to select
[RawMaterialTypeCode] and somehow getting an adjacent combo box to
display choices of only those [RawMaterial#] values that correspond to
that [RawMaterialTypeCode] value. The [RawMaterial#] value would be
written to the [Usage] table whilst the [RawMaterialTypeCode] value
would simply be discarded.
I imagine the way to do this would be through the use of queries but I
seem to be getting myself into knots! Is there anyone with the patience
to read all of this, make sense of it and solve it?!?
Hoping to hear from someone soon (and thanks in advance!).
Paul
I would like to dynamically limit and sort the choices shown in a combo
box based on a user's selection:
In the [RawMaterials] table I have the fields [RawMaterial#] (text) and
[RawMaterialTypeCode] (text from lookup).
In the finished products table I have the field [FinishedProduct#]
(text)
I am using a [Usage] table to create a many-to-many relationship. It
contains the fields [RawMaterial#] and [FinishedProduct#].
I am using a form and subform to enter data. The main form adds data to
the [RawMaterials] table while the subform adds data to the [Usage]
table (and is linked to the main form by [FinishedProduct#] field).
With me so far?
The subform's default view is "Continuous Forms" so allows entry of
several raw material codes, building up the association between Raw
Materials and Finished Products in the Usage table. [RawMaterial#]
values are unique across all types of raw materials. This means the
list is very long. I would like to use a combo box for selecting
[RawMaterial#] values but the length of the list is prohibitive.
I imagine a solution being to have one combo box to select
[RawMaterialTypeCode] and somehow getting an adjacent combo box to
display choices of only those [RawMaterial#] values that correspond to
that [RawMaterialTypeCode] value. The [RawMaterial#] value would be
written to the [Usage] table whilst the [RawMaterialTypeCode] value
would simply be discarded.
I imagine the way to do this would be through the use of queries but I
seem to be getting myself into knots! Is there anyone with the patience
to read all of this, make sense of it and solve it?!?
Hoping to hear from someone soon (and thanks in advance!).
Paul