Expand|Select|Wrap|Line Numbers
- If (Not IsNull(Me.cmbSubstantive)) Then
- Me!txtSub_Artikel.ControlSource = DLookup("[Artikel]", "tblSubstantive", "[Substantiv] = '" & [Forms]![frmMain]![cmbSubstantive] & "'")
- Else
- Me.txtSub_Artikel.ControlSource = ""
- End If
The problem is the same as if I try to put this Dlookup code into a string variable.
The error I'm getting is "Run-Time Error 13: Type mismatch".
Thanks!