And I agree with Fabien!!!! I just over with the transcription of former wrongly formatted query style -> query="INSERT INTO....." MyConn.Exec(query) Don't use that style! You will make only troubles with escaping characters. The right way is MyConn.Exec("INSERT Into ... VALUES(&1,&2...);",myvar1,myvar2,...)
2012/2/6, Fabien Bodard <gambas...@gmail.com>: > sql = "INSERT INTO statistic (TimeCode, SessionStart, SessionEnd, Kluch, > Comp) VALUES (&1,&2,&3,&4,&5)" > MODMain.$Con.Subst(sql, T, Now(), Now(), kluch, Nc) > MODMain.$Con.Exec(sql) > > > ???? > > i prefer like that : > > MODMain.$Con.Exec("INSERT INTO statistic (TimeCode, SessionStart, > SessionEnd, Kluch, Comp) VALUES (&1,&2,&3,&4,&5)",T, Now(), Now(), > kluch, Nc) > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user