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 

TADoQuery post raises exception

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





PostPosted: Tue Dec 09, 2003 8:55 pm    Post subject: TADoQuery post raises exception Reply with quote



I using a simple TADOQuery that returns a single row. I then edit a single
column and post the change.

Here's the code.

qyUtility.SQL.Clear;
qyUtility.SQL.Text := 'select * from BR_SEQUENCES where RECORD_NUM =
:Record_num';
qyUtility.Parameters.ParamByName('RECORD_NUM').Value := strSeq_RecordNum;

qyUtility.Open;
if qyUtility.RecordCount = 1 then
begin
qyUtility.Edit;
qyUtility.FieldByName('LastUsed').AsString := newvalue;
qyUtility.Post;
qyUtility.Close;
end;


This works on almost every machine I have except 1. The post raises and
exception stating (Unable to open table VARCHAR""BR_SEQUENCES). I'm not sure
if this is an ado problem or something in the delphi vcl. BTW, I'm using
the ODBC for OLEDB provider and the ODBC driver is for a pervasive database.
Any comments are appreciated.

Thanks,

Eric Lyons


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.