 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Penny Guest
|
Posted: Thu Jul 29, 2004 9:59 am Post subject: Re: Ado and Lookup Fields |
|
|
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 |
|
 |
|
|
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
|
|