I have
got around the problem by emptying my master dataset before
inserting; it runs off a parameterised query which only ever
displays one record anyway. Rereading the error, one of my detail datasets
must be linking to something in the master that isn't unique between records if
more than one is inserted - I haven't been able to locate where this is
happening, but I now know what to look for if I need
to.
Cheers,
Carl
-----Original Message-----
From: Carl Reynolds [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 23 February 2000 12:24
To: Multiple recipients of list delphi
Subject: [DUG]: Exception: Linkfields to detail must be unique
From: Carl Reynolds [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 23 February 2000 12:24
To: Multiple recipients of list delphi
Subject: [DUG]: Exception: Linkfields to detail must be unique
I'm getting this error when trying to post a newly inserted record into a master ClientDataSet. The problem only happens on insertion, and only on the master CDS. Everything else works fine. The offending error happens in InternalPost - the line is
Check(FDSCursor.InsertRecord(ActiveBuffer));
Anyone encountered this before, or have any idea what I might have done wrong to cause this to occur?
Cheers,
Carl