Hello, I'm attempting to concatinate an sql statement that looks like this:
SQL = "SELECT * FROM [companyList] WHERE [customers] = ['"& newCompany & "']"
Basically the newCompany variable needs to contain puncuation, such as ' and possibly others. newCompany might be a person such as john's store instead of the store name. However, for the life of me I haven't been able to get it to work. what am I doing wrong?
SQL = "SELECT * FROM [companyList] WHERE [customers] = ['"& newCompany & "']"
Basically the newCompany variable needs to contain puncuation, such as ' and possibly others. newCompany might be a person such as john's store instead of the store name. However, for the life of me I haven't been able to get it to work. what am I doing wrong?