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 

Can RefreshRecord work with a TSimpleDataSet?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress)
View previous topic :: View next topic  
Author Message
Dominic Dumée
Guest





PostPosted: Wed Dec 22, 2004 11:37 am    Post subject: Can RefreshRecord work with a TSimpleDataSet? Reply with quote



I get the error 'unable to find record. no key specified' if I try a
refreshrecord on a TSimpleDataSet that's connecting to MSSQL. I've set the
pfInKey on the primary key field on the component but this doesn't seem to
make any difference. A Refresh works fine but I only want the single record
reloaded and displayed on the dbgrid for speed.

Is there a way to do this?

Thanks
Dominic


Back to top
Bill Todd
Guest





PostPosted: Wed Dec 22, 2004 12:40 pm    Post subject: Re: Can RefreshRecord work with a TSimpleDataSet? Reply with quote



Replace the TSimpleDataSet with separate SQLDataSet, DSP and CDS
components. Set the pfInKey ProviderFlag on the SQLDataSet.

--
Bill Todd (TeamB)
TeamB cannot answer questions received via email
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress) 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.