Solved How to create dynamic cascading combo boxes (1 Viewer)

tihmir

Registered User.
Local time
Yesterday, 21:58
Joined
May 1, 2018
Messages
257
I am working on the following problem - I have a main table "tblAnimals" with fields "id" and "TypeOfAnimal". In that field "TypeOfAnimal" I have different types of animals - "dogs" with id 1, "cats" with id 2, etc. Then I have 2 tables of subspecies of these animals - "tblDogsSubspecies", "tblCatsSubspecies". The table "tblAnimals" is related with "tblDogsSubspecies" and "tblCatsSubspecies" field (foreign key) animal_id.
And the question is how to do the following: When I choose from combobox "cboAnimals" type of animal "dogs" the second combobox "cboSubspecies" to be populated with data from "tblDogsSubspecies".
 

CJ_London

Super Moderator
Staff member
Local time
Today, 05:58
Joined
Feb 19, 2013
Messages
16,616
yes similar principle but only works on single forms - my example works in continuous forms as well
 

Users who are viewing this thread

Top Bottom