I am using oracle 9i database with VB.NET when i am trying to insert record in my PR_REC table it gives me error "ORA-01722 Invalid number" here is my insert statement and the structure of the table
com = New OleDbCommand("INSERT INTO PR_REC(pr_no,item1,price1,qty1,item2,price2,qty2,item3,price3,qty3,item4,price4,qty4,item5,price5,qty5,item6,price6,qty6,item7,price7,qty7,item8,price8,qty8,item9,price9,qty9,item10,price10,qty10,Pur_reason,pr_date,Status) VALUES ('" & Me.txtprno.Text.Trim & "','" & Me.txtitm1.Text.Trim & "','" & Me.txtprc1.Text.Trim & "', '" & Me.txtqty1.Text.Trim & "','" & Me.txtitm2.Text.Trim & "', '" & Me.txtprc2.Text.Trim & "','" & Me.txtqty5.Text.Trim & "','" & Me.txtitm3.Text.Trim & "','" & Me.txtprc3.Text.Trim & " ','" & Me.txtqty9.Text.Trim & "','" & Me.txtitm4.Text.Trim & " ','" & Me.txtprc4.Text.Trim & " ','" & Me.txtqty2.Text.Trim & "','" & Me.txtitm5.Text.Trim & " ','" & Me.txtprc5.Text.Trim & " ','" & Me.txtqty6.Text.Trim & "','" & Me.txtitm6.Text.Trim & " ','" & Me.txtprc6.Text.Trim & " ','" & Me.txtqty6.Text.Trim & "','" & Me.txtitm7.Text.Trim & " ','" & Me.txtprc7.Text.Trim & " ','" & Me.txtqty10.Text.Trim & "','" & Me.txtitm8.Text.Trim & " ','" & Me.txtprc8.Text.Trim & " ','" & Me.txtqty3.Text.Trim & "','" & Me.txtitm9.Text.Trim & " ','" & Me.txtprc9.Text.Trim & " ','" & Me.txtqty7.Text.Trim & "','" & Me.txtitm10.Text.Trim & " ','" & Me.txtprc10.Text.Trim & " ','" & Me.txtqty11.Text.Trim & "','" & Me.txtpr.Text.Trim & "',to_date('" & textDateTime & "','mm/dd/yyyy hh24:mi:ss'),'" & ComboBox1.Text.Trim & "')", con)
Structure of the table:-
Name Null? Type
------------------------------- -------- ----
PR_NO NOT NULL VARCHAR2(50)
ITEM1 NOT NULL VARCHAR2(100)
ITEM2 VARCHAR2(100)
ITEM3 VARCHAR2(100)
ITEM4 VARCHAR2(100)
ITEM5 VARCHAR2(100)
ITEM6 VARCHAR2(100)
ITEM7 VARCHAR2(100)
ITEM8 VARCHAR2(100)
ITEM9 VARCHAR2(100)
ITEM10 VARCHAR2(100)
PRICE1 NOT NULL NUMBER(30)
PRICE2 NUMBER(30)
PRICE3 NUMBER(30)
PRICE4 NUMBER(30)
PRICE5 NUMBER(30)
PRICE6 NUMBER(30)
PRICE7 NUMBER(30)
PRICE8 NUMBER(30)
PRICE9 NUMBER(30)
PRICE10 NUMBER(30)
PUR_REASON VARCHAR2(1200)
PR_DATE DATE
STATUS VARCHAR2(30)
CUR_ST VARCHAR2(30)
PR_CL_DATE DATE
QTY1 NOT NULL NUMBER(30)
QTY2 NUMBER(30)
QTY3 NUMBER(30)
QTY4 NUMBER(30)
QTY5 NUMBER(30)
QTY6 NUMBER(30)
QTY7 NUMBER(30)
QTY8 NUMBER(30)
QTY9 NUMBER(30)
QTY10 NUMBER(30)
CDATE DATE
Please help me