I am (still) trying to make the contents of a combo box change depending on what you choose in another combo box (which is actually a value-list lookup). The data for the combo box is in a table called products, with fields cat (for category) and prod (for products), a bit like this:
Cat: Prod:
-------------------
cars mazda
cars ford
cars lada
colours red
colours blue
colours green
etc.
I have put this in the rowsource of the second combo box:
SELECT prod FROM products WHERE Cat=forms!input!category;
category is the first combo box, which (in this example) has the values cars, colours etc.
The only way you can get it to work is by selecting something in the first combo box, then going into design view, then coming out again and selecting the second combo box, for some reason.
Cat: Prod:
-------------------
cars mazda
cars ford
cars lada
colours red
colours blue
colours green
etc.
I have put this in the rowsource of the second combo box:
SELECT prod FROM products WHERE Cat=forms!input!category;
category is the first combo box, which (in this example) has the values cars, colours etc.
The only way you can get it to work is by selecting something in the first combo box, then going into design view, then coming out again and selecting the second combo box, for some reason.