Hi,
I dont like posting on here, when Im sure its an easy answer but for some reason I cannot get the following to actually INSERT the record :
It executes the code without an error, and if I use ExecuteNonQuery it returns saying 1 row has been affected, but when I then view the db it has not been inserted.
Any ideas gratefully received,
Cheers,
Sparky.
I dont like posting on here, when Im sure its an easy answer but for some reason I cannot get the following to actually INSERT the record :
Code:
OleDbConnection myConnection = new OleDbConnection(Properties.Settings.Default.dataConnectionString);
OleDbCommand myCommand = new OleDbCommand("INSERT INTO DataLog(myData) Values(geoff)",myConnection);
myConnection.Open();
myCommand.Execute();
It executes the code without an error, and if I use ExecuteNonQuery it returns saying 1 row has been affected, but when I then view the db it has not been inserted.
Any ideas gratefully received,
Cheers,
Sparky.