+ Reply to Thread
Results 1 to 2 of 2

Increase the number of primary keys in a table

  1. #1
    Registered User
    Join Date
    04-09-2014
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    12

    Increase the number of primary keys in a table

    Hello everyone,

    I hope there is someone out there who can help with the follwoing problem.

    I have table containg 2 primary keys (K1 and K2).

    K1 K2

    US D001
    US D002
    US D003
    US D004
    US D005
    etc etc

    I want help to be able to transform the table so it looks like this (i.e. adding a third key, K3). Doing this manully for 10 000 records will take a lot of time.


    K1 K2 K3

    US D001 Sweden
    US D002 Sweden
    US D003 Sweden
    US D004 Sweden
    US D005 Sweden
    US D001 Germany
    US D002 Germany
    US D003 Germany
    US D004 Germany
    US D005 Germany
    US D001 ITALY
    US D002 ITALY
    US D003 ITALY
    US D004 ITALY
    US D005 ITALY
    US D001 CANADA
    US D002 CANADA
    US D003 CANADA
    US D004 CANADA
    US D005 CANADA
    etc etc etc

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Increase the number of primary keys in a table

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Extend the number of unique keys in a table
    By mikal.malmberg in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 12-17-2014, 11:54 AM
  2. Replies: 5
    Last Post: 06-05-2013, 03:16 AM
  3. Replies: 6
    Last Post: 04-09-2013, 06:41 PM
  4. VBA search primary keys and add text next to it
    By liminghao8754 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-05-2012, 02:57 PM
  5. Primary vs. Foreign Keys
    By wakegirl814 in forum Excel General
    Replies: 2
    Last Post: 11-18-2009, 06:22 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1