Wow Sky, I appreciate the effort to explain this with what I provided.
Not knowing how to upload my odb tables… (Can I upload the tables or must I upload the odb that includes my form, etc?)
Here is the cleaned up table organization (the dashes are spaces):
tbl1 fields:--------------------------tbl2 fields:
• ex_cat_key (int- auto)--------• ex_subcat_key (int- auto)
• ex_cat_options (char)------- • ex_subcat_options (char)
---------------------------------------• ex_subcat_ID (int, related to ex_cat_key)
The category and subcategory list boxes reside in the same form. There is no subform. Unless, by definition, when fields refer to two different tables you have a form an subform?
tbl2 contains all the subcategories and is organized/filtered by the ex_opt_id.
For example: tbl1 contains the states as categories like 1, Ohio; 2, Kentucky and so forth. tbl2 contains the large cities in these states Cincinnati, 1; Columbus, 1: Louisville, 2, Lexington 2.
tbl2 does have an autoincrementing primary key. I thought every table required one.
As an aside, I don’t understand why SQL in the subcat field with an appropriate WHERE clause won’t work in relating the category and subcategory options?
Regarding the filter table, if I understand you correctly:
• It contains an autoincrementing integer primay key (filter_key)
• It also contains an ID (int) field (filter_ID)
I don’t understand what you mean by “…NOT NULL PRIMARY KEY”? Wouldn’t a primary key always be 0, 1, 2…?
I’m all about simple. You provide a simpler solution that I don’t fully understand - …replace the mainform listbox with a table control. If I understand this, I would replace the Data content for the category listbox from tbl_filter to tbl1 and enter the master and slave stuff you show?
Thanks, Erik