After more researches, it started to act like that as soon as I adjusted the Integer field to AutoInc. If I put it back to Integer, the SQLExec() works ok. Does this mean it is not possible to use SQLExec() if we have an AutoInc field defined in the structure?