Re: adodc update
- From: "Mark J. McGinty" <mmcginty@xxxxxxxxxxxxxxx>
- Date: Sat, 26 Nov 2005 22:27:57 -0800
"casiopea" <casiopea@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C57A38F2-09AD-4778-964E-1F13BEA9392F@xxxxxxxxxxxxxxxx
> I've got a text box associated to an adodc control. The problem is the
> following:
> adoentry is an adodc control; if I use adoentry.update and I have changed
> the value of the text control associated to a field, it doesn't save it;
> however if I directly use adoentry.movenext or adoentry.moveprevious it
> saves
> it.
> I have also try with adoentry.recordset.resync and it doesn't work either.
> Any tips?
If you want to force data-bound controls to update the datasource, without
changing the record position, set the bookmark property to itself.
Personally I *never* use ADODC, it's too easy to write your own data source
controls, and much more flexible... but the principle is the same.
If ADODC has a bookmark property, assign it to itself, otherwise use the
underlying recordset's bookmark property, e.g.,
adoentry.recordset.Bookmark = adoentry.recordset.Bookmark
-Mark
.
- Prev by Date: Re: Error message with non-existent linie number!
- Next by Date: Re: Problem updating Recordset
- Previous by thread: Re: Error message with non-existent linie number!
- Next by thread: Help: ATL COM EXE Server with ADO or MFC ODBC classes
- Index(es):
Relevant Pages
|
|