Page 3 of 3 FirstFirst 123
Results 31 to 33 of 33
  1. #31
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    They appear to be although as I said, I prefer AutoNumber PK's. Numbers sort and index better and the AutoNumber just takes care of itself with no help from me. You can still have the text InvoiceNumber field but it need not be the PK.

  2. #32
    slimjen is offline Expert
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    727
    The reason I did it this way is because the invoice is unique in the invoice table bacause it can have only one invoice # to many tracking#s. I already have trackingid autonumber in the shipment table but i didn't put one in the invoice table. If I add invoice id and make it autonumber and primary then should I add the invoice# field to the shipment table and use this field to show the relationship between the two tables?

  3. #33
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    You can put a unique index on *any* field in the table. Your NATURAL Primary Key if fine the way it is here, I was just showing my preference.

Page 3 of 3 FirstFirst 123
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Autopopulating Forms
    By daniel.e.john in forum Access
    Replies: 3
    Last Post: 09-09-2011, 07:19 PM
  2. Replies: 7
    Last Post: 07-15-2011, 01:58 PM
  3. Replies: 1
    Last Post: 03-15-2011, 03:53 PM
  4. Write Code to Navigate from Subform to Subform
    By Swilliams987 in forum Programming
    Replies: 22
    Last Post: 02-04-2011, 11:30 AM
  5. Replies: 15
    Last Post: 11-09-2010, 04:27 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