I'm using the following SQL statement for a search function. I'm having some problems with the like operator. If you could take a look and tell me what I've done wrong, I would appreciate it.
Code:
"SELECT tblCoreData.RecordNumber, tblCoreData.AgentName, tblCoreData.AgentID, tblCoreData.Site, tblCoreData.DateEntered" & _
" FROM tblCoreData" & _
" WHERE tblCoreData.AgentName Like '* " & txtSearchData & " & *';"
TIA,
Elysynn