G
Guest
Dim strSQL As String = "SELECT CUSTNMBR, CNTCPRSN FROM Customers WHERE CUSTNAME = '" + cmbCustomer.Text + "'"
if cmbCustomer.Text is something like Marc's Computer Co. my SqlStr will not work. I tried Dim strSQL As String = "SELECT CUSTNMBR, CNTCPRSN FROM Customers WHERE CUSTNAME = ' + cmbCustomer.Text + '"
....but that didn't work.
Any ideas how to overcome or is a data cleansing exercise required.?
if cmbCustomer.Text is something like Marc's Computer Co. my SqlStr will not work. I tried Dim strSQL As String = "SELECT CUSTNMBR, CNTCPRSN FROM Customers WHERE CUSTNAME = ' + cmbCustomer.Text + '"
....but that didn't work.
Any ideas how to overcome or is a data cleansing exercise required.?