I'm trying to have a combobox change the subform that is on my mainform. My issue is that in Swedish nouns, verbs and adjectives change form, so if I'm adding a new noun into my mainform, then the subform associated with inputting nouns needs to dynamically load.
I've wrote a little VBA to assist but I cannot get it to work properly:
Private Sub combobox_Grammatik_Klass_Change()
Select Case Me.combobox_Grammatik_Klass.Text
Case "Substantiv"
Me.subfrm_Orden.SourceObject = "frm_Substantiv_Ord"
Me.Singular_Obestämd.Text = Me.txtbox_Ord.Text
Case "Verb"
Me.subfrm_Orden.SourceObject = "frm_Verb_Ord"
Me.Attributivt_Utrum_Singular_Obestämd_Positiv.Text = Me.txtbox_Ord.Text
Case "Adjektiv"
Me.subfrm_Orden.SourceObject = "frm_Adjektiv_Ord"
Me.Aktiv_Infinitiv.Text = Me.txtbox_Ord.Text
Case Else
' Me.subfrm_Orden.SourceObject = "frm_Alla_Andra_Orden"
' Me.Ord.Text = Me.txtbox_Ord.Text
End Select
End Sub
Main form = Ord_Inmatning_Blankett (Word Input Form)
Subform = frm_Alla_Andra_Orden (All other words), frm_Adjektiv_Ord (Adjective Words), frm_Verb_Ord (Verb Words), and frm_Substantiv_Ord (Noun Words)
Subform control = subfrm_Orden
Thank you!
kör, noun
andkör, verb
-- two fields in each case.. You can add a tense if preferred. – Fionnuala