I have some issues with the execution of an ordinary query over MS Access database table. On my machine I installed Access 2007 and my database Access format is 2002 to 2003 is compatible mode.

My connection string is: Driver={Microsoft Access Driver (*.mdb)}; DBQ=D:\\myAppPath\\myDatabase.mdb.
I connect to the database successfully using SQLDriverConnect() - result returned by this function is 0.
Code:
 nRetCode = SQLDriverConnect(m_hDBC, NULL, (SQLTCHAR *) m_szFullDSN.c_str(), (SQLSMALLINT) m_szFullDSN.length(), 
               (SQLTCHAR *) szFullDSN, (SQLSMALLINT)sizeof(szFullDSN)/sizeof(szFullDSN[0]), &nLen, SQL_DRIVER_NOPROMPT);
When I run a trivial query ("SELECT * FROM myTable") I use the SQLExecDirect().
Code:
nRetCode = SQLExecDirect(m_hSTM, (SQLTCHAR *) szQuery, (SQLINTEGER) wcslen(szQuery));
And now, surprise: nRetCode = -1.
I'm using HandleError() in order to find the error:
Code:
TCHAR *szErr = HandleError(m_hSTM, SQL_HANDLE_STMT, nRetCode);
sErrorMsg = szErr ? szErr : _T("");
sErrorMsg = [Microsoft][ODBC Microsoft Access Driver]Optional feature not implemented

This is considering that if I open my database in Access 2007 I have: Security Warning Certain content in the database HAS Been disabled. I tried to enable the content but is vain ...

I assume that programming is not a problem but rather the configuration.
Have you encountered this problem? If yes, what is the solution?