Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/04/2009, 12:23
Sashenka19
 
Fecha de Ingreso: diciembre-2007
Ubicación: Lima
Mensajes: 23
Antigüedad: 18 años, 10 meses
Puntos: 0
Respuesta: Importantisimo visual basic

prueba asi:

Código PHP:
variable = Text1.Text
cmmm
.ActiveConnection = cnn
cmmm
.CommandType = adCmdText
cmmm
.CommandText = "INSERT INTO " & variable &  " & _
"
(Gastopor, Montopor, Fechadelgasto, Motivodelgasto) " & _
"
VALUES ('" & _
Text3 & "'
, '" & Text4 & "', '" & Text5 & "', '" & Text6 & "')"
cmmm.Execute 
si no funciona ponle a variable de esta forma:

Código PHP:
variable = Chr(39) & variable & Chr(39) 
Saludos.