Ron,
Thanks very much for that. I have made a test database doing exactly as
you described, and it indeed works as you suggest. I must admit I was
surprised to see that it did.
However, in practical terms, this is not really much use. The way you
have designed this database is very unusual. You have [id] fields in
the tblcategory and tblitem talbes, but they are not used, so I am not
sure what their purpose is.
Anyway, I think the problem we have been discussing becomes apparent if
the bound column of the combobox is not the column that is displayed.
In the case of category = fruit or vegetable, this may not necessarily
be the case. But with cascading comboboxes, in my experience it is
almost always the case that the displayed column is not the bound
column, for example the basis of the relationship between the first
combobox and the dependent second combobox might be SupplierID but it is
the SupplierName that is shown.
Using your example, try it like this...
1. In tblitem, change catagory to a Number data type, and edit it so it
contains the id value from the catagory table, e.g. 1 instead of "fruit".
2. In table1, change catagory and items to Number data type, and edit
them so they contain the id values, so in the example you gave, it would
look like this...
1 CityMarket 1 1
2 CityMarket 2 3
3 CityMarket 1 2
3. On the form, change the properties of the catagory combobox to like
this...
Row Source - SELECT id, catagory FROM tblcatagory
Column Count - 2
Bound Column - 1
Column Widths - 0;2
4. On the form, change the properties of the item combobox to like this...
Row Source - SELECT id, item FROM tblItem WHERE
catagory=Forms!Form5![company subform]!catagory
Column Count - 2
Bound Column - 1
Column Widths - 0;2
Then you will see what we are talking about, I think.