Hi !
I'm trying to add a new record through a command on a Data Environment...
I have this settings...
- command text: SELECT * FROM Emp_Nomina_Ev
- Command type: 1-adCmdText
- Cursor Location: adUseClient
- Cursor Type: adOpenStatic
- LockType: adLockOptimistic
------------------------------
On my Add Button i have this:
With DataNomina.rsTEmp_nomina_ev
.AddNew
!cve_nomina = MVar.Nomina
!cve_emp = CInt(txtCveEmp.Text)
!dias_lab = CInt(txtDiasLab.Text)
!tiempo_ex = CInt(txtTiempoEx.Text)
!alimentacion = CDbl(txtAlim.Text)
!hospedaje = CDbl(txtHosp.Text)
!ispt = CDbl(txtISPT.Text)
!gratifica = CDbl(txtGrat.Text)
!liquido = CDbl(txtLiquido.Text)
.Update
End With
BUT... I also have this error message when i'm trying to add a new record
"Execution error 3704, operation not permited if the object is closed "
I really need some help, THANKS
I'm trying to add a new record through a command on a Data Environment...
I have this settings...
- command text: SELECT * FROM Emp_Nomina_Ev
- Command type: 1-adCmdText
- Cursor Location: adUseClient
- Cursor Type: adOpenStatic
- LockType: adLockOptimistic
------------------------------
On my Add Button i have this:
With DataNomina.rsTEmp_nomina_ev
.AddNew
!cve_nomina = MVar.Nomina
!cve_emp = CInt(txtCveEmp.Text)
!dias_lab = CInt(txtDiasLab.Text)
!tiempo_ex = CInt(txtTiempoEx.Text)
!alimentacion = CDbl(txtAlim.Text)
!hospedaje = CDbl(txtHosp.Text)
!ispt = CDbl(txtISPT.Text)
!gratifica = CDbl(txtGrat.Text)
!liquido = CDbl(txtLiquido.Text)
.Update
End With
BUT... I also have this error message when i'm trying to add a new record
"Execution error 3704, operation not permited if the object is closed "
I really need some help, THANKS