Hi VB people -
Using VB 6, I have a form which allows add/update/delete, with text boxes as data-bound controls via the ADO data control.
The problem is with Adding a new record :
*********************************************************
'The following code results in the new record getting written OVER the existing rec that was displayed before entering add mode. Also inserts an EMPTY row!
********************************************************
datPrimaryRS.Recordset.AddNew
datPrimaryRS.Recordset!ReaCode = txtCode
datPrimaryRS.Recordset!ReaDesc = txtDesc
datPrimaryRS.Recordset.Update
Thanks for any help. John
Using VB 6, I have a form which allows add/update/delete, with text boxes as data-bound controls via the ADO data control.
The problem is with Adding a new record :
*********************************************************
'The following code results in the new record getting written OVER the existing rec that was displayed before entering add mode. Also inserts an EMPTY row!
********************************************************
datPrimaryRS.Recordset.AddNew
datPrimaryRS.Recordset!ReaCode = txtCode
datPrimaryRS.Recordset!ReaDesc = txtDesc
datPrimaryRS.Recordset.Update
Thanks for any help. John