Hello,
I've similar problem as I used PHP variable in the odbc_exec statement as below:
odbc_exec( $cnx, "SELECT DISTINCT Catagory_L2.Level2_Name
FROM Catagory_L1 RIGHT JOIN Catagory_L2 ON Catagory_L1.Level1_No = Catagory_L2.Level1_No
WHERE (Catagory_L1.Level1_Name=$select_lv1);");
and had an error msg like this:
Warning: SQL error: [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1., SQL state 07001 in SQLExecDirect in c:\php40\test\
Can anyone give me some hints about this error msg?!
THX!!!