Am 27.02.2012 11:36, gerbreown wrote:
I have just started using LO Base 3.4.4.  I created 2 tables with a
relationship between them.  I then deleted one of the tables and created
another one with a relationship to the first.  When I try to add records to
the table is gives me the following error message: "SQL Status: 23000
Error code: -177
Integrity constraint violation - no parent SYS_FK_110 table:  Patient Old in
statement [INSERT INTO "Pharm Rcpt" (
"pr_Cost","pr_Date","pr_Doctor","pr_Med","pr_Patient","pr_Pharm","pr_Qty")
VALUES ( ?,?,?,?,?,?,?)]"
It looks like the relationship did not get deleted when the table was
deleted.
--
View this message in context: 
http://nabble.documentfoundation.org/Relationships-in-Base-tp3780236p3780236.html
Sent from the Users mailing list archive at Nabble.com.
You never define a relationship in Base. You always do that in a 
database software even when you are working with the built-in database 
engine (status bar reads: "embedded HSQLDB"), this "integrated" database 
behaves exactly like any external database such as MySQL and many others.
The self explaining error message comes from that database software and 
it says that you try to enter a patient-ID that has no counterpart in 
the patient table's primary key.
Base can help you to avoid all integrity constraint errors by means of 
subforms and list boxes which are the 2 key elements to edit relational 
data in Base forms.
[Example] Relations reflected by list boxes in forms:
http://user.services.openoffice.org/en/forum/viewtopic.php?f=100&t=40444
--
For unsubscribe instructions e-mail to: users+help@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted
Context
   
 
  Privacy Policy |
  
Impressum (Legal Info) |
  
Copyright information: Unless otherwise specified, all text and images
  on this website are licensed under the
  
Creative Commons Attribution-Share Alike 3.0 License.
  This does not include the source code of LibreOffice, which is
  licensed under the Mozilla Public License (
MPLv2).
  "LibreOffice" and "The Document Foundation" are
  registered trademarks of their corresponding registered owners or are
  in actual use as trademarks in one or more countries. Their respective
  logos and icons are also subject to international copyright laws. Use
  thereof is explained in our 
trademark policy.