I have need to limit selection available in a combox based on another combo box
If Not IsNull(Me!cboProtect) Then
Me!cboProtect.RowSource = "SELECT tblProtect.ID, tblProtect.Description" _
& " FROM (tblProtect Left Outer JOIN tblCauselookup ON tblCauselookup.CodeID )" _
& " WHERE ((tblProtect.CodeID=tblcauselookup.CodeID " & Me!Cbocause.Column(2) & ")) " _
& " ORDER BY tblProtect.CodeID;"
Else
Me!cboProtect.RowSource = "SELECT [ID],[Description]FROM [tblProtect]ORDER BY [ID] ASC; "
Thanks in advance
If Not IsNull(Me!cboProtect) Then
Me!cboProtect.RowSource = "SELECT tblProtect.ID, tblProtect.Description" _
& " FROM (tblProtect Left Outer JOIN tblCauselookup ON tblCauselookup.CodeID )" _
& " WHERE ((tblProtect.CodeID=tblcauselookup.CodeID " & Me!Cbocause.Column(2) & ")) " _
& " ORDER BY tblProtect.CodeID;"
Else
Me!cboProtect.RowSource = "SELECT [ID],[Description]FROM [tblProtect]ORDER BY [ID] ASC; "
Thanks in advance