technocraze
12-18-2006, 08:49 AM
Hi guys,
I have encountered an error while inserting the records to MS Acess using Visual basic. I tried to insert the records to the database by executing an sql query with a where clause. This 'where' condition is needed because i need to match the corresponding records from my drop-down combo box. However, when it its executed there is a syntax error indicating missing semi-colon
My sql query goes:
insert into [TableName] (field1, field2, field3) values (textBox1, textBox2, textbox3) where field4 = combo1;
Error: missing semi-colon
Any assistance or code reference is very much appreciated
Thanks in advance!
I have encountered an error while inserting the records to MS Acess using Visual basic. I tried to insert the records to the database by executing an sql query with a where clause. This 'where' condition is needed because i need to match the corresponding records from my drop-down combo box. However, when it its executed there is a syntax error indicating missing semi-colon
My sql query goes:
insert into [TableName] (field1, field2, field3) values (textBox1, textBox2, textbox3) where field4 = combo1;
Error: missing semi-colon
Any assistance or code reference is very much appreciated
Thanks in advance!