mr_silva
Messages postés1Date d'inscriptiondimanche 20 novembre 2005StatutMembreDernière intervention29 mars 2006
-
29 mars 2006 à 10:42
MorpionMx
Messages postés3466Date d'inscriptionlundi 16 octobre 2000StatutMembreDernière intervention30 octobre 2008
-
29 mars 2006 à 11:28
Bonjour ,
D'après le compilateur,j'ai un petit probléme de syntaxe INSERT INTO.
public bool AjoutPosition( string Date ,string Heure, string Coordonnees , uint Id )
{
int n; string strConnString "Provider Microsoft.Jet.OLEDB.4.0;" +
"Data Source = C:\\Tmp\\BDD.mdb";
string ReqPosition = "INSERT INTO Position(Date,Heure,Coordonnees,Identifiant) VALUES('" + Date + "','" + Heure + "','" + Coordonnees + "','" + Id + "')";
try
{
oConnexion.ConnectionString = strConnString;
oConnexion.Open();
oCommand = new OleDbCommand(ReqPosition, oConnexion);
n = (int)oCommand.ExecuteNonQuery();
MessageBox.Show("Aller voir le bon ajout de la Position dans la table POSITION");
oConnexion.Close();
return true;