hay q hacer todo esto?¿?¿?¿?¿?¿?¿?¿?
Publicado por jgleal (34 intervenciones) el 04/08/2005 11:11:40
pues eso, estoy investigando manejo de bases de datos access desde VB.NET y para hacer un simple insert he hecho esto:
Dim com As New OleDb.OleDbCommand
com.CommandText = "INSERT into Organizaciones(NombreCompania,TipoActividad,ClasificacionEmpresa) VALUES ('" _
& txtNombreCompania.Text & "','" & cmbActividad.Text & "','" & cmbClasificacion.Text & "')"
com.Connection = conex
com.ExecuteNonQuery()
Cada vez q quiera hacer un insert o un uptadate o etc. necesito crear un oldbcommand y decirle cual es su conexion¿?
en vb6 directamente hacia conex.Execute "............"
Gracias
Dim com As New OleDb.OleDbCommand
com.CommandText = "INSERT into Organizaciones(NombreCompania,TipoActividad,ClasificacionEmpresa) VALUES ('" _
& txtNombreCompania.Text & "','" & cmbActividad.Text & "','" & cmbClasificacion.Text & "')"
com.Connection = conex
com.ExecuteNonQuery()
Cada vez q quiera hacer un insert o un uptadate o etc. necesito crear un oldbcommand y decirle cual es su conexion¿?
en vb6 directamente hacia conex.Execute "............"
Gracias
Valora esta pregunta


0