When searching for a particular Employee I would use a SQL string as such .....
What do I do if the strSurname has a single quote in it?Code:strSQL = "SELECT * FROM Employees " & _ "WHERE Surname = '" & strSurname & "'"
eg....
Any help would be appreciated.Code:strSQL = "SELECT * FROM Employees " & _ "WHERE Surname = 'O'Sullivan'"![]()





Reply With Quote