G
Guest
Hi All,
I have a main form with a combo box on it. When a particular value is
selected, say Blue, a subform on that form is made visible which has it's own
combo box and textbox. The options of the subform combo box are dependant on
the combo box value selected in the main form. So if Blue is selected on the
main form, the subform combo box has shades of blue and the text box
describes those shades. If the colour in the main form combo box has no entry
on the subform, the subform is set to invisible. The data for the subform is
held in individual tables (as lookup tables) which become the source data for
the subform. Currently I have a separate subform for each value in the main
form combo box for which I have additional data. Each subform is on the main
form exactly on top of each other and the correct subform is made visible
depending on the colour selected on the main form combo box.
I was wondering if it were possible to have just one subform and then have
it's recordsource property set, at runtime, by the value of colour selected
in the main form combo box. I can't seem to expose this property when adding
code to the main form combo box.
Any ideas would be very much appreciated,
Ian.
I have a main form with a combo box on it. When a particular value is
selected, say Blue, a subform on that form is made visible which has it's own
combo box and textbox. The options of the subform combo box are dependant on
the combo box value selected in the main form. So if Blue is selected on the
main form, the subform combo box has shades of blue and the text box
describes those shades. If the colour in the main form combo box has no entry
on the subform, the subform is set to invisible. The data for the subform is
held in individual tables (as lookup tables) which become the source data for
the subform. Currently I have a separate subform for each value in the main
form combo box for which I have additional data. Each subform is on the main
form exactly on top of each other and the correct subform is made visible
depending on the colour selected on the main form combo box.
I was wondering if it were possible to have just one subform and then have
it's recordsource property set, at runtime, by the value of colour selected
in the main form combo box. I can't seem to expose this property when adding
code to the main form combo box.
Any ideas would be very much appreciated,
Ian.