run time error 2147217900

Joined
Apr 21, 2010
Messages
1
Reaction score
0
Hi,
Need your help, following is my vb code throws error message during execution "Run Time error 2147217900 Syntex Error "

SQL = "insert into BSR62005 (part_I, srno, Item_code, Acc_type, Jun, sep, dec, mar) values ("
SQL = SQL + " '" & TxtMFBankerCode & "', '" & txtSr & "',val('" & txtAcCode & "'), '" & TxtAcType & "', '" & TxtJunAmt & "','" & TxtSeptAmt & "', '" & TxtDecAmt & "', '" & TxtMarAmt & "')"
DbConn.Execute SQL

but same query works OK if executed directly in access database

we had checked the DBConn connection string also
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top