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 

Re: Ado and Lookup Fields

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
Penny
Guest





PostPosted: Thu Jul 29, 2004 9:59 am    Post subject: Re: Ado and Lookup Fields Reply with quote



I was wrong it doesn't work on AfterPost, and the problem is that I don't
know where to initialize this, if this is the only way which I hope not.



"Penny" <pennyargyrou (AT) hotmail (DOT) com> wrote

Quote:
Hi,

I have a AdoDataset where I have created a lookup field which looks to a
AdoTable.
When I insert a row to AdoDataset the Keyfield of the lookup is null at
the
beginning, and
appears the message

"Project test.exe raised exception Class EOleException with message 'An
unknown error has occured'. Process stopped. Use step or run to continue."

But this only happens if I run the program from Delphi, and not when I
execute the exe from disk.

Insteed when on AfterInsert I initialized the Keyfield it works fine.

Does it means that null is not allowed to keyfield, or there is something
else?


Thanks.
Any





Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers) 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.