Hallo Zusammen,
ich möchte eine bedingte ComboBox erstellen, diese soll bei Auswahl eines Wertes in einer vorgeschalteten ComboBox nur noch eine daran gekoppelte Auswahl anzeigen.
Leider funktioniert mein Code nicht.. es erscheint immer ein Box mit "Enter Parameter Value"
Danke für eure Hilfe!
Hier mein Code:
Private Sub cboIndustry_AfterUpdate()
Me.cboSub_Industry.RowSource = "SELECT SubInd" & _
" FROM tblIndustry2" & _
" WHERE Ind = " & Me.cboIndustry
End Sub
Hallo,
welcher Datentyp ist Ind ?
String
Me.cboSub_Industry.RowSource = "SELECT SubInd" & _
" FROM tblIndustry2" & _
" WHERE Ind = "' & Me.cboIndustry &"'"
Bei String sind Kochkomma (') zu verwenden.
Besten Dank!