Postada em 22/01/2008 12:40 hs
fazendo assim da para ter uma visão melhor
dim str as string
str = "" str = str & " INSERT INTO tabCliente " str = str & "( " str = str & " campo1, " str = str & " campo2, " str = str & " campo3, " str = str & " campo4, " str = str & " campo5, " str = str & " campo6, " str = str & " campo7, " str = str & " campo8, " str = str & " campo9, " str = str & " campo10, " str = str & " campo11, " str = str & " campo12, " str = str & " campo13, " str = str & " campo14, " str = str & " campo15, " str = str & " campo16, " str = str & " campo17, " str = str & " campo18" str = str & " ) " str = str & " values " str = str & " ( " str = str & "'" & text1.text & "'" & "," ''virgula no finall str = str & "'" & text2.text & "'" & "," ''virgula no finall str = str & "'" & text3.text & "'" & "," ''virgula no finall str = str & "'" & text4.text & "'" & "," ''virgula no finall str = str & "'" & text5.text & "'" & "," ''virgula no finall str = str & "'" & text6.text & "'" & "," ''virgula no finall str = str & "'" & text7.text & "'" & "," ''virgula no finall str = str & "'" & text8.text & "'" & "," ''virgula no finall str = str & "'" & text9.text & "'" & "," ''virgula no finall str = str & "'" & text10.text & "'" & "," ''virgula no finall str = str & "'" & text11.text & "'" & "," ''virgula no finall str = str & "'" & text12.text & "'" & "," ''virgula no finall str = str & "'" & text13.text & "'" & "," ''virgula no finall str = str & "'" & text14.text & "'" & "," ''virgula no finall str = str & "'" & text15.text & "'" & "," ''virgula no finall str = str & "'" & text16.text & "'" & "," ''virgula no finall str = str & "'" & text17.text & "'" & "," ''virgula no finall str = str & "'" & text18.text & "'" str = str & " );" Conn.execute str
'fecha a conexão com o banco de dados Conn.Close Espero que ajude
|