J
jez
I've been stuck with this stupid problem for the past two days.. I give up
now, please help me?
Here's the code :
OleDbCommand updatedb = conn.CreateCommand();
updatedb.CommandText = "INSERT INTO maintable (name, number) VALUES ('John
Smith', '01215489746')";
updatedb.ExecuteNonQuery();
When I release/debug my app in VS.NET I get a succeeded build. However when
I want to run the app I get on the screen :
" OleDbException : Syntax Error in INSERT INTO statement. "
Obviously there's something wrong with the SQL command I'm writing, but
what? I really don't get it and I've honestly tried everything.
For the info, I'm trying to connect to an Access DB. Please share you
knowledge with me.. thanks so much!
By the way, if anyone's got a good website with an ADO.NET tutorial (for
beginners) please let me know..
thanks
jez
now, please help me?
Here's the code :
OleDbCommand updatedb = conn.CreateCommand();
updatedb.CommandText = "INSERT INTO maintable (name, number) VALUES ('John
Smith', '01215489746')";
updatedb.ExecuteNonQuery();
When I release/debug my app in VS.NET I get a succeeded build. However when
I want to run the app I get on the screen :
" OleDbException : Syntax Error in INSERT INTO statement. "
Obviously there's something wrong with the SQL command I'm writing, but
what? I really don't get it and I've honestly tried everything.
For the info, I'm trying to connect to an Access DB. Please share you
knowledge with me.. thanks so much!
By the way, if anyone's got a good website with an ADO.NET tutorial (for
beginners) please let me know..
thanks
jez