Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Database Design / January 2005

Tip: Looking for answers? Try searching our database.

Are Primary keys needed in child tables?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nevie and Phil - 13 Jan 2005 23:05 GMT
Are Primary keys needed in child tables?

How important is having a defined primary key in child tables?  

Here is my dilemma; I have 35 groups running around come desert country.  I
having them send updates to a central database with something like XML files
(I haven’t exactly figured out how yet).  

The primary table won’t have any conflicts, but I am contimpated the need to
have primary keys in the child tables.

Could you guys let me know what you think and if it’s worth combining a
group ID with an Auto number in the forms (or if there is some way to have
the Jet do it maybe by default?)
John Vinson - 14 Jan 2005 02:21 GMT
>Are Primary keys needed in child tables?

Primary keys are needed in ALL tables.

>How important is having a defined primary key in child tables?  

Essential, if you want to update the table, delete records, sort, ....

>Here is my dilemma; I have 35 groups running around come desert country.  I
>having them send updates to a central database with something like XML files
[quoted text clipped - 6 lines]
>group ID with an Auto number in the forms (or if there is some way to have
>the Jet do it maybe by default?)

Two suggestions: use a two-field primary key consisting of the groupID
and a Long Integer sequential number, probably manually assigned
(though an autonumber should work); or use Access Replication, if you
are bold, undaunted by code, and willing to read up on this complex
subject <g>.

                 John W. Vinson[MVP]
Nevie and Phil - 16 Jan 2005 07:23 GMT
John,

Thanks for the Advice, on both topics, sorry it took me so long to reply.  I
ended up combining the group id and the auto number.  I was just relunctent  
to do that because i am curious, can i import data without making code to
import it. or pretty much to i need to make some code or query instead up
derectly importing data?

Once again, Thanks!

> >Are Primary keys needed in child tables?
>
[quoted text clipped - 22 lines]
>
>                   John W. Vinson[MVP]
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.