G
Guest
I have an error when I try to delete last record in the record set. The code
I'm using is:
lcurrow = Me.BindingContext(DsTextProdMain,
"TextProductsMain").Current
lcurrow.Delete()
This code works for all records in the recordset except last one. But if
recordset contains only one record the code works fine. The error is coming
out only in 2003 version, 2002 version works fine.
The system give me a not understandable error.
An unhandled exception of type 'System.NullReferenceException' occurred in
system.data.dll
Additional information: Object reference not set to an instance of an object.
Is somebody met this behabior?
I'm using is:
lcurrow = Me.BindingContext(DsTextProdMain,
"TextProductsMain").Current
lcurrow.Delete()
This code works for all records in the recordset except last one. But if
recordset contains only one record the code works fine. The error is coming
out only in 2003 version, 2002 version works fine.
The system give me a not understandable error.
An unhandled exception of type 'System.NullReferenceException' occurred in
system.data.dll
Additional information: Object reference not set to an instance of an object.
Is somebody met this behabior?