Results 1 to 8 of 8
  1. #1
    azgaman is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Jul 2011
    Location
    Accra
    Posts
    8

    Creating Customised Serial Primary Key

    Hello House,



    I want to create Customised Serial Primary Keys and dont know how to go about it.

    I need Your usual ingenuity.

    Thanks.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Why does it need to be the Primary Key? What is wrong with an AutoNumber? Any field can have an unique index on it.

  3. #3
    azgaman is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Jul 2011
    Location
    Accra
    Posts
    8
    Didnt really get you. ???

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    Why do you want a customized key?
    A primary key is for database system use. So why not use an autonumber?

    If you don't have an answer, or are unsure, then I suggest you read this.

    Good luck with your project.

  5. #5
    azgaman is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Jul 2011
    Location
    Accra
    Posts
    8

    Thank you

    Thank you for your help. I have downloaded the pdf file.

    My reasons for customised primary key are:

    To be able able to add letters as prefix or short dates

    To make the primary key of a table distinct from a similar one.

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    You should research Primary Key and Relational Database Design - you have a misconception of WHAT exactly a Primary Key is.

    STart here http://forums.aspfree.com/attachment...2&d=1201055452

  7. #7
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664

  8. #8
    azgaman is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Jul 2011
    Location
    Accra
    Posts
    8

    Thank you

    I have the links and I will go through them.

    Thank you.

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

Similar Threads

  1. Help!! Problem with primary key and not creating new records
    By msmithtlh in forum Database Design
    Replies: 2
    Last Post: 04-08-2013, 11:38 AM
  2. Error creating new primary key
    By quicksun in forum Forms
    Replies: 2
    Last Post: 08-01-2012, 08:53 AM
  3. Replies: 6
    Last Post: 03-21-2012, 07:13 PM
  4. Customised Auto Number Help
    By aamer in forum Access
    Replies: 3
    Last Post: 02-16-2011, 04:34 AM
  5. Help On Creating Automatic of a Serial Number
    By lm_lopes in forum Programming
    Replies: 4
    Last Post: 03-10-2010, 06:47 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