Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


On Wed, 2011-12-28 at 05:55 -0800, HRdesigner wrote:
I am creating a database to track employee information I have a 1:n
relationship and I always get a "generate foreign key" error no mater how I
go about creating it.  How do I create a Foreign Key?  Thanks.

--
View this message in context: 
http://nabble.documentfoundation.org/Base-Relationship-issues-tp3616436p3616436.html
Sent from the Users mailing list archive at Nabble.com.


     I suggest you get Chapter 8 of the Getting Started Guide available
at http://www.libreoffice.org/get-help/documentation/. Getting Started
with Base is the chapter's name. It describes how to create
relationships between tables using a primary-foreign key pairs.
     Briefly, The field that is at the "1" end of the 1:n relationship
must be the primary key of its table. The second table must have a field
with the same attributes as the primary key with the except that this
field does not have AutoValue set to Yes. This field in the second table
is the foreign key. Once the tables have been created, Use Tools>
Relationships to create the relationship between the two fields.

--Dan


-- 
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.