Results 1 to 3 of 3

Thread: There MUST be an easier way!!??

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Posts
    343

    Question

    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

  2. #2
    Junior Member
    Join Date
    Jul 2000
    Location
    Mexico
    Posts
    24

    Lightbulb

    Have you tried opening an ADO recordset and binding them to each control?

  3. #3
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844
    or just create a control array and use a for/next loop to build your SQL statement

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width