I have two tables in Access 2003.
The first table, that contains common names of plants, has two columns: CommonNameID (primary key) and Common (common name).
The second table, that contains scientific names of plants, has six columns: PlantID (primary key) CommonNameID (used to link to the first table), Family, Genus, Species, and Variety (components of scientific names).
Background information: each plant is uniquely identified by a scientific name (controlled by an international body). Many plants are also known by one or more common names over which there is no control. Thus, an individual plant can have various common names and an individual common name can refer to several different plants.
The form I want to create enables a user to select a common name and display one or more corresponding scientific names.
After defining an appropriate relationship between the two tables, I used the Forms Wizard to create the form with its subform.
The main form contains a text box that displays a common name from the first table. The subform contains text boxes that displays the components of the corresponding scientific names.
A user can use the navigation buttons at the bottom of the main form to select common names, one after the other, each time seeing the appropriate scientific names in the subform. This works okay.
The problem is that the first table contains 14,746 common names, so selecting a specific common name is tedious.
I want to replace the text box in the main form that displays common names (selected by navigation buttons) with a combo box with the Auto Expand property enabled so that a user can easily choose a common name. That’s where I have a problem.
How should I set the Link Child Fields and Link Master Fields properties on the subform?
I’ll appreciate any suggestions about solving this problem.
The first table, that contains common names of plants, has two columns: CommonNameID (primary key) and Common (common name).
The second table, that contains scientific names of plants, has six columns: PlantID (primary key) CommonNameID (used to link to the first table), Family, Genus, Species, and Variety (components of scientific names).
Background information: each plant is uniquely identified by a scientific name (controlled by an international body). Many plants are also known by one or more common names over which there is no control. Thus, an individual plant can have various common names and an individual common name can refer to several different plants.
The form I want to create enables a user to select a common name and display one or more corresponding scientific names.
After defining an appropriate relationship between the two tables, I used the Forms Wizard to create the form with its subform.
The main form contains a text box that displays a common name from the first table. The subform contains text boxes that displays the components of the corresponding scientific names.
A user can use the navigation buttons at the bottom of the main form to select common names, one after the other, each time seeing the appropriate scientific names in the subform. This works okay.
The problem is that the first table contains 14,746 common names, so selecting a specific common name is tedious.
I want to replace the text box in the main form that displays common names (selected by navigation buttons) with a combo box with the Auto Expand property enabled so that a user can easily choose a common name. That’s where I have a problem.
How should I set the Link Child Fields and Link Master Fields properties on the subform?
I’ll appreciate any suggestions about solving this problem.
Comment