SELCT is mispelled
You probably need a wild card (% or * depending on what you are using
and where)
It is cleaner to do this
Dim sSQL as string
Dim sFind as string
Assuming that user is entering data into Text1, do this
sFind = Text1.Text
sSQL = "SELECT * FROM CUSTOMER WHERE CUSTOMER.NAME LIKE " & "%" &
sFind & "%"
Debug.Print sSQL 'So you can see what it looks like, if you have
problem.
Then use sSQL in your .Open
Regards,
Rob
.