Hi thanks for your solution. It works with a little bit of changes.

Thanks



Quote Originally Posted by vb_dba
When you perform your comparison, you are searching for Like "*Bank, NBFI*". You would need to be able to ammend your query to add a Like clause for each keyword:
VB Code:
  1. Dim sSql
  2. Dim arrKeyWord
  3. Dim i
  4.  
  5. arrKeyWord = Split(sKeyWordString, ",")
  6.  
  7. sSql = "Select * From myTable Where "
  8. For i = LBound(arrKeyWord) To UBound(arrKeyWord)
  9.     sSql = sSql & "keywordfield Like '*" & arrKeyWord(i) & "*' AND "
  10. Next
  11. 'Remove the trailing AND
  12. sSql = Left(sSql, Len(sSql) - 5)

Or something to that effect.