Hi I have having this error message
Microsoft OLE DB Provider for SQL Server error '80040e14'
Invalid column name 'gonzalez'.
When I try to run this query I just made. This website has a search box that I type in that searches all the last names in corporate directory.
SecurityQuery = "SELECT * FROM dbCorpDir.dbo.vwEmployees WHERE sn like '" & FormatDBTextSearch(Last_Name) & "' ORDER BY sn;"
this works fine in SSMS
SELECT * FROM dbCorpDir.dbo.vwEmployees WHERE sn like 'gonzalez' ORDER BY sn;
SecurityQuery
after substitution makes the problem obvious in about 95% of the cases. – Gordon Linoff