Hi.
#1: I have been trying to figure out how to make a subform visible based on combo box selection on main form. I've tried doing this with both after update event and the on click event with a command button, but I just got error after error.
Main form "frmPlants", has combo box "cboPlantType", with just three values ("flower", "shrub" and "tree").
Three subforms "frmPlants_Flower_subf", "frmPlants_Shrub_subf" and "frmPlants_Tree_subf", with the fields limited only to the ID field, the foreign key from the Plants table and the Plant name.
If the main form cboPlantType has "tree" chosen, I would like to have the appropriate subform frmPlants_Tree_subf become visible so data entry can be done.
#2: I was hoping to use either the Switch or Select Case functions to avoid what can be a nested IIF nightmare.
If anyone can help, I would appreciate it.
#1: I have been trying to figure out how to make a subform visible based on combo box selection on main form. I've tried doing this with both after update event and the on click event with a command button, but I just got error after error.
Main form "frmPlants", has combo box "cboPlantType", with just three values ("flower", "shrub" and "tree").
Three subforms "frmPlants_Flower_subf", "frmPlants_Shrub_subf" and "frmPlants_Tree_subf", with the fields limited only to the ID field, the foreign key from the Plants table and the Plant name.
If the main form cboPlantType has "tree" chosen, I would like to have the appropriate subform frmPlants_Tree_subf become visible so data entry can be done.
#2: I was hoping to use either the Switch or Select Case functions to avoid what can be a nested IIF nightmare.
If anyone can help, I would appreciate it.