MySQL - Error 3027 al enlazar Visual Basic 6 con MySQL

 
Vista:

Error 3027 al enlazar Visual Basic 6 con MySQL

Publicado por Richard Rodriguez (1 intervención) el 20/10/2009 23:00:51
Alguien me puede ayudar a determinar el motivo del error 3027, luego de haber instalado el ODBC al enlazar el Visual Basic 6 con una base de datos MySQL, presentando error 3027 no se puede actualizar por ser de solo lectura.

Aqui está el código:

Private Sub Command1_Click()

Dim BD As Database
Dim NuevoRegistro As Recordset

Set BD = OpenDatabase("MySql", dbDriverNoPrompt, False, "Provider=MSDASQL.1;Persist Security Info=False;Data Source=MySql")

Set NuevoRegistro = BD.OpenRecordset("SELECT * FROM tiradores")

NuevoRegistro.AddNew ------------------>>>>>> error 3027:
NuevoRegistro!Cedula = CCedula
NuevoRegistro!Nombres = NNombres
NuevoRegistro!Rango = RRango
NuevoRegistro!Unidad = UUnidad

NuevoRegistro.Update
NuevoRegistro.Close
BD.Close

MsgBox "Registro Guardado"

NombreGuardar = ""
AreaGuardar = ""

End Sub
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder