I have managed get the search function to work but it is very chunky :(
Code:
If dropdown_sV.Value = "N" Then
If WhereParts > 0 Then
WhereClause = WhereClause & " AND"
End If
WhereClause = WhereClause & " [sV] = 'N'"
WhereParts = WhereParts + 1
End If
If dropdown_sV.Value = "G" Then
If WhereParts > 0 Then
WhereClause = WhereClause & " AND"
End If
WhereClause = WhereClause & " [sV] = 'G'"
WhereParts = WhereParts + 1
End If
Can I make this code more efficient because I have lots of select dropdowns with the following options: N, G, O, A, R, U
It would be a nightmare to maintain my application.