I've recreated an example of a navigation form with 3 subforms (CatA, CatB, CatC). When a certain subform is selected I want the the listbox in the selector subform to update to only show that type of category items.
I've set a on click event when CatA is selected in the navigation form that the following get triggered:
me.[NavigationSubform].Forms![CatA]![selector].recordsource = "SELECT Values.ID, Values.State FROM [Values] WHERE (((Values.Category) = "a"))GROUP BY Values.ID, Values.State;
However I'm getting an syntax error. Any ideas? I've attached a copy of the example.
I've set a on click event when CatA is selected in the navigation form that the following get triggered:
me.[NavigationSubform].Forms![CatA]![selector].recordsource = "SELECT Values.ID, Values.State FROM [Values] WHERE (((Values.Category) = "a"))GROUP BY Values.ID, Values.State;
However I'm getting an syntax error. Any ideas? I've attached a copy of the example.