Results 1 to 3 of 3
  1. #1
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664

    Autonumberr Issue

    Why are we not allowed to have more than one autonumber in each table we crate I n design view. It say to delete the values and row. Add a second row and make that not autonumber, but just number.



    It seems a that the foreign key in the second table should be autonumber also.

    Any help appreciated. Thanks in advance.

    Respectfully,


    Lou Reed

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    you don't need 2 autos.
    tbl 1 has auto for the key
    tbl 2 a child of tbl 1 , will have the key as LONG (for the parent id)

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Why would you think a foreign key would be autonumber? Autonumbers are generated independently of other tables.

    A PK does not have to be an autonumber field but it is often convenient to do so. The related foreign key would never be an autonumber.
    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. Replies: 5
    Last Post: 01-08-2015, 02:08 PM
  2. CDate and CStr issue with "Invalid Use of Null" Issue
    By excellenthelp in forum Queries
    Replies: 3
    Last Post: 07-25-2014, 01:34 PM
  3. QRY Issue
    By buckwheat in forum Access
    Replies: 1
    Last Post: 09-19-2013, 11:48 AM
  4. Replies: 22
    Last Post: 05-21-2013, 07:54 PM
  5. Tab Issue
    By Lazor78 in forum Forms
    Replies: 3
    Last Post: 07-05-2012, 08:18 AM

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