amigos,por favor me ajudem:
estou quase louco e nao descubro a resposta…
é o seguinte:no codigo abaixo,ao tentar incluir um array no ACCESS via odbc,me retorna o seguinte erro: GENERAL ERROR.
Se tiver somente um item no array,passa mas se tiver mais da pau.
Se utilizo o mesmissimo codigo no Mysql,funciona normalmente…
Me ajudem,pois tenho que incluir no ACCESS e nao estou conseguindo…
String ff="";
int numItems = items.size();
String descr[]=new String[numItems];
NumberFormat currency = NumberFormat.getCurrencyInstance();
int numvet=0;
for (int i=0; i < numItems; i++)
{
descr[i]=(String)(item.Descr);
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conn = DriverManager.getConnection("jdbc:odbc:Banco", "", "");
Statement st = conn.createStatement();
st.executeUpdate("insert into pedido(numero,descr,qtd,total,valorunit) values('"+w+"','"+descr[i]+"','"+qtd+"','"+total+"','"+valorunit+"')");
{ conn.close();
st.close();
}