Hi,
I had already tried the syntax which you gave. But anycase, I tried something new and that worked.
I used
sprintf(message,"Insert into tablename values ('%s','%s','%s')",x1,x2,x3);
message is char[100] and x1, x2, x3 can be of any type. Mine was CString.
Then I converted...