URGENTE!!!!
Publicado por Andres Huaman Hidalgo (10 intervenciones) el 06/06/2001 19:17:54
Por ayudenme estoy tratando de agregar registros a un dbf el codigo lo detallo mas adelante, me sale el siguiente mensaje :
Error '-214747259(80004005)' en tiempo de ejecución :
Microsoft - Controlador ODBC dBase No se puede actualizar. Base de datos u objeto de solo lectura
Dim cnnTemporal As ADODB.Connection
Dim rsTEMPORAL As ADODB.Recordset
Set cnnTemporal = New ADODB.Connection
cnnTemporal.Provider = "MSDASQL"
cnnTemporal.Open "Persist Security Info=False;Data Source=Fox Pro;Initial Catalog=C:\Agricola"
Set rsTEMPORAL = New ADODB.Recordset
rsTEMPORAL.CursorType = adOpenDynamic
rsTEMPORAL.LockType = adLockOptimistic
rsTEMPORAL.Open "Select * from temporal", cnnTemporal
rsTEMPORAL.AddNew
'Aqui sale el error'
Muchas Gracias
Error '-214747259(80004005)' en tiempo de ejecución :
Microsoft - Controlador ODBC dBase No se puede actualizar. Base de datos u objeto de solo lectura
Dim cnnTemporal As ADODB.Connection
Dim rsTEMPORAL As ADODB.Recordset
Set cnnTemporal = New ADODB.Connection
cnnTemporal.Provider = "MSDASQL"
cnnTemporal.Open "Persist Security Info=False;Data Source=Fox Pro;Initial Catalog=C:\Agricola"
Set rsTEMPORAL = New ADODB.Recordset
rsTEMPORAL.CursorType = adOpenDynamic
rsTEMPORAL.LockType = adLockOptimistic
rsTEMPORAL.Open "Select * from temporal", cnnTemporal
rsTEMPORAL.AddNew
'Aqui sale el error'
Muchas Gracias
Valora esta pregunta


0