vb.net - Syntax Error in INSERT statement, Access database -


i have been trying insert row access database. have been able insert other tables using same format, table seams have issue. have dropped table , recreated it, , didn't seam work. figured see if can see issue is. here insert code in visual studio

    dim objcon new connectstring        dim cmd new oledbcommand("insert order(orderid, customerid, employeeid) values (@orderid, @customerid, @employeeid);", objcon.con)      cmd.parameters         .addwithvalue("@orderid", cint(txtorderid.text))          .addwithvalue("@customerid", cint(txtcustid.text))         .addwithvalue("@employeeid", cint(txtemployeeid.text))       end     objcon.con.open()     cmd.executenonquery()     objcon.con.close() 

the connectstring works in other classes, don't think issue. difference in table compared other tables has foreign keys (customerid , employeeid). can see issue is?


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -