Good day to all,
I have write a inner query in Access database and it is able to produce results. I have 2 tables, Proj and Functional Features. The query is:
SELECT Proj.ProjID, Proj.ProjName, [Functional Feature].FeatID
FROM Proj INNER JOIN [Functional Feature] ON Proj.ProjID = [Functional Feature].ProjID;
When I copy over the query over to ASP, I got the following error when I try to run it ->
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver] The SELECT statement includes a reserved word or an argument name that is misspelled or missing, or the punctuation is incorrect.
The code is below:
SQL = "SELECT ProjID, ProjName, [Functional Feature].FeatID, " _
& "FROM [Proj] INNER JOIN [Functional Feature] ON Proj.ProjID = Functional Feature.ProjID" _
& "WHERE ProjID LIKE '%" & Replace(strSearch, "'", "''") & "%';"_
I have write a inner query in Access database and it is able to produce results. I have 2 tables, Proj and Functional Features. The query is:
SELECT Proj.ProjID, Proj.ProjName, [Functional Feature].FeatID
FROM Proj INNER JOIN [Functional Feature] ON Proj.ProjID = [Functional Feature].ProjID;
When I copy over the query over to ASP, I got the following error when I try to run it ->
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver] The SELECT statement includes a reserved word or an argument name that is misspelled or missing, or the punctuation is incorrect.
The code is below:
SQL = "SELECT ProjID, ProjName, [Functional Feature].FeatID, " _
& "FROM [Proj] INNER JOIN [Functional Feature] ON Proj.ProjID = Functional Feature.ProjID" _
& "WHERE ProjID LIKE '%" & Replace(strSearch, "'", "''") & "%';"_