BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Refresh Current Record using clUseServer and ctKeyset cursor

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
Mark Thorogood
Guest





PostPosted: Thu Mar 04, 2004 4:40 pm    Post subject: Refresh Current Record using clUseServer and ctKeyset cursor Reply with quote



Hi All

Delphi 7.0 Enterprise
Access 2000
MDAC 2.70

I use the very useful TBetterADODataSet ADO component for much of my ADO
database work and I am trying to implement refreshing just the current
record, which the component caters for via setting its RefreshType property
to rtResyncCurrent. This works as expected for client based cursors however
for a server based KeySet cursor I keep getting the error "Current Provider
does not support refreshing underlying values". This is NOT a problem with
just TBetterADODataSet it occurs with TADODataSet if you do a
ADODataSet1.Recordset.Resync(adAffectCurrent, adResyncAllValues);

This seems very silly as by the nature of a server based keyset cursor the
values are updated in DB bound controls automatically as you navigate
through the DataSet. So you would have thought that there must be a simple
method to update DB bound controls without navigating to another record and
back.

Anybody else experienced this, has any possibly solutions or reasons for
problem?

Thanks in advance

Mark Thorogood - Thorogood Software Limited





Back to top
Vassil Nazarov
Guest





PostPosted: Thu Mar 04, 2004 9:49 pm    Post subject: Re: Refresh Current Record using clUseServer and ctKeyset cu Reply with quote



The Recordset.Resync method is implemented by the ADO's
cursor engine and is therefore only available with client cursors.

HTH
--
Vassil Nazarov
http://betterado.hit.bg/


Back to top
Mark Thorogood
Guest





PostPosted: Fri Mar 05, 2004 8:24 am    Post subject: Re: Refresh Current Record using clUseServer and ctKeyset cu Reply with quote



Hi

Thanks for the response. Any suggestions of how to achieve what I'm looking
for? I know I could do a requery or navigate away and return to current
record but those solutions have various overheads associated with them.

Regards

Mark Thorogood

"Vassil Nazarov" <vassil (AT) engineer (DOT) bg> wrote

Quote:
The Recordset.Resync method is implemented by the ADO's
cursor engine and is therefore only available with client cursors.

HTH
--
Vassil Nazarov
http://betterado.hit.bg/





Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.