PDA

Click to See Complete Forum and Search --> : There MUST be an easier way!!??


turfbult
Aug 3rd, 2000, 12:18 PM
There must be an easier way to add many controls to a database.

I have a form with 20 textboxes. I now want to write all these textboxes.text to fields in a database - the way I do it now is....

insert into table values ('" & txtbox.text & "','" & txtbox.text & "','" & txtbox.text & "','" & txtbox.text & "'
,'" & txtbox.text & "'......)


Isn't there an easier/quicker way??

Any suggestions please,

SS

chicho_chicho
Aug 3rd, 2000, 12:26 PM
Have you tried opening an ADO recordset and binding them to each control?

Clunietp
Aug 3rd, 2000, 09:30 PM
or just create a control array and use a for/next loop to build your SQL statement