Results 1 to 2 of 2
  1. #1
    82280zx's Avatar
    82280zx is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Jan 2014
    Posts
    82

    Linking Autonumbers together?


    Can I link multiple tables together by Autonumber? I'm trying to make a database without making a giant blob of a table. I want to be able to cascade delete as well, so if I pick a record from my asset table and it gets retired or removed I want all the information with it except for contact information to be deleted. I have a Asset Table, Location Table, and Network information table. I guess I'm just having a rough time grasping this relationship thing? Thanks for those that help!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    No, linking is not done between autonumber fields. An autonumber field can be the primary key of a table and then a corresponding field in a related table would be a number type field and the primary key will be saved as a foreign key in the number field. These two fields are the link between tables.

    Primary key fields do not have to be autonumber.

    The primary keys for Asset and Location tables can be autonumber.

    Number (long integer) type fields in Network table will receive the PK values as foreign keys.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Sub Records & Autonumbers
    By samg2012 in forum Database Design
    Replies: 3
    Last Post: 03-22-2013, 10:01 AM
  2. primary key autonumbers problem
    By jinz in forum Access
    Replies: 6
    Last Post: 11-21-2012, 06:08 PM
  3. Autonumbers and Incremental Numbers
    By stacies in forum Access
    Replies: 2
    Last Post: 01-27-2012, 02:53 PM
  4. re-autonumbers every year by access
    By migo702000 in forum Access
    Replies: 4
    Last Post: 09-20-2010, 11:31 AM
  5. AutoNumbers
    By remmons in forum Access
    Replies: 1
    Last Post: 01-30-2010, 01:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums