i have a text field (txt1) bound to a data control (data1). data1 is
bound to table "employers". txt1 is tied to "company". the database
is "abc.mdb".
in a command button called "save", i have the following in the click
event:
data1.recordset.update
thus, when i run this small program, the table is positioned at the
first record. hence i can use the vcr buttons of the data control and
move in either "direction" of the record sequence.
if modification is made to the the txt1 field, the changes are
committed when i move to another record via the validate event of
data1.
in vb3, i can click on the save button and the validate event will
called with update action parameter.
in vb4, i get an "3426" (an action was cancelled by an associated
object) error. i called ms tech support and was told that the error
message should have been "3020" (update called without edit nor
addnew).
why?
the "visdata" sample program in vb3 uses the update method in the
click event of the "update" button. ie:
data1.recordset.update
in vb4, visdata has the following:
data1.updaterecord '!!!!
anyone has any ideas?
thanks.
--------
paul chow