Usually i use this code bellow to check if the name in database and it working good
da = New SqlDataAdapter("select NameOfMov From MovTable where NameOfMov = '" & Trim(NameSearchTB.Text) & "'", sqlcon)
da.Fill(MovieSearchdt)
but if the name that i check for it contain character like this (') like (men's) the project stop and give this error msg:- System.Data.SqlClient.SqlException: 'Incorrect syntax near 's'. Unclosed quotation mark after the character string ''.'
how can i fix this code please ?