V
Val
Hi all,
Having a lil problem with the OleDbConnection + Command.
The whole thing is done im c# and uses Access datbase, it builds a SQL
string from stuff that user typed in
then calls OleDbCommand.ExecuteNonQuery with the folowing string.
"INSERT INTO Trans (rID, [Number], Price, [Date], Month, Year, [Percent])
VALUES (6,1,5.95,18,8,2004,100)"
at which time the try-catch wraping comes up with an error "Synatx error in
INSERT INTO statement".
I have tryed putting that string directly into MS Office Access and it
executes perfectly......so wheres the problem?
Thank you!
Having a lil problem with the OleDbConnection + Command.
The whole thing is done im c# and uses Access datbase, it builds a SQL
string from stuff that user typed in
then calls OleDbCommand.ExecuteNonQuery with the folowing string.
"INSERT INTO Trans (rID, [Number], Price, [Date], Month, Year, [Percent])
VALUES (6,1,5.95,18,8,2004,100)"
at which time the try-catch wraping comes up with an error "Synatx error in
INSERT INTO statement".
I have tryed putting that string directly into MS Office Access and it
executes perfectly......so wheres the problem?
Thank you!