I'm using VB to connect to an Access database. I have table of customer records and need to search for a customer by name. I'm having trouble searching for names with an apostrophe in such as O'Leary, O'Donnell etc. The SQL I'm using is SELECT * FROM tblCustomer WHERE sName LIKE '*" & sRequiredName & "*'" where sRequiredName is the parameter and is a string variable. Where am I going wrong?
Thanks in anticipation.
Thanks in anticipation.