hi every one I was using a query to insert some data and it worked fine. I had to add a new fields (Extension stored in...... txtvendor(0).te xt, its a numeric value) on form.It work fine if remove extension and it relavant field form thr query. I am getting error message Syntax error I can't pick why
here is my query
[code=vb]RS.Open "Insert into Vendor(account_ no,customer,con tact_person,add ress,city,posta l_code,province ,phone_number,E xtension,licenc e_no,gst_no,pst _no,terms,descr iption,status) values (" & Trim$(txtVendor (1).Text) & ",'" & Trim$(txtVendor (2).Text) & "','" & Trim$(txtVendor (3).Text) & "','" & Trim$(txtVendor (4).Text) & "','" & Trim$(txtVendor (5).Text) & "','" & Trim$(txtVendor (6).Text) & "','" & Trim$(txtVendor (7).Text) & "','" & Trim$(txtVendor (8).Text) & "'," & Trim$(txtVendor (0).Text) & ",'" & Trim$(txtVendor (9).Text) & "','" & Trim$(txtVendor (10).Text) & "','" & Trim$(txtVendor (11).Text) & "'," & Trim$(txtVendor (12).Text) & ",'" & Trim$(txtVendor (13).Text) & "','" & Trim$(txtVendor (14).Text) & "')", Conn, adOpenStatic, adLockOptimisti c[/code]
thanks in advance
here is my query
[code=vb]RS.Open "Insert into Vendor(account_ no,customer,con tact_person,add ress,city,posta l_code,province ,phone_number,E xtension,licenc e_no,gst_no,pst _no,terms,descr iption,status) values (" & Trim$(txtVendor (1).Text) & ",'" & Trim$(txtVendor (2).Text) & "','" & Trim$(txtVendor (3).Text) & "','" & Trim$(txtVendor (4).Text) & "','" & Trim$(txtVendor (5).Text) & "','" & Trim$(txtVendor (6).Text) & "','" & Trim$(txtVendor (7).Text) & "','" & Trim$(txtVendor (8).Text) & "'," & Trim$(txtVendor (0).Text) & ",'" & Trim$(txtVendor (9).Text) & "','" & Trim$(txtVendor (10).Text) & "','" & Trim$(txtVendor (11).Text) & "'," & Trim$(txtVendor (12).Text) & ",'" & Trim$(txtVendor (13).Text) & "','" & Trim$(txtVendor (14).Text) & "')", Conn, adOpenStatic, adLockOptimisti c[/code]
thanks in advance
Comment