A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

another question regarding multiplep-field primary key



 
 
Thread Tools Display Modes
  #1  
Old August 16th, 2004, 09:15 PM
cwr
external usenet poster
 
Posts: n/a
Default another question regarding multiplep-field primary key

I have 3 excel files to import....there are 10 fields..there are duplicates
in these excel files. But what constitutes a duplicate is that field 2,
field 5 and field 6 cannot be identical. For example there could be
field 2...field 5...field 6
421 a 1997
421 b 1997
421 b 1998
421 b 1998.....

Only the last two are duplicates. Would it be "silly" to put all three
fields as multiple-field primary key to import ...to catch dups...and when
done, reset the primary key to the one field.??

  #2  
Old August 16th, 2004, 10:49 PM
John Nurick
external usenet poster
 
Posts: n/a
Default

There's nothing wrong with multi-field primary keys - and it seems you
have one here. So you if you "reset the primary key to the one field" it
will no longer be a primary key!

On Mon, 16 Aug 2004 13:15:03 -0700, cwr
wrote:

I have 3 excel files to import....there are 10 fields..there are duplicates
in these excel files. But what constitutes a duplicate is that field 2,
field 5 and field 6 cannot be identical. For example there could be
field 2...field 5...field 6
421 a 1997
421 b 1997
421 b 1998
421 b 1998.....

Only the last two are duplicates. Would it be "silly" to put all three
fields as multiple-field primary key to import ...to catch dups...and when
done, reset the primary key to the one field.??


--
John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.
  #3  
Old August 16th, 2004, 10:52 PM
tina
external usenet poster
 
Posts: n/a
Default

have you tried using the three fields to create a unique index? that should
give you the same outcome, without having to change the table's primary key
just to import.

hth


"cwr" wrote in message
...
I have 3 excel files to import....there are 10 fields..there are

duplicates
in these excel files. But what constitutes a duplicate is that field 2,
field 5 and field 6 cannot be identical. For example there could be
field 2...field 5...field 6
421 a 1997
421 b 1997
421 b 1998
421 b 1998.....

Only the last two are duplicates. Would it be "silly" to put all three
fields as multiple-field primary key to import ...to catch dups...and when
done, reset the primary key to the one field.??



  #4  
Old August 17th, 2004, 02:46 AM
external usenet poster
 
Posts: n/a
Default

Both responses good. But did some reading on unique
index.....that worked well.

Thanks

-----Original Message-----
have you tried using the three fields to create a unique

index? that should
give you the same outcome, without having to change the

table's primary key
just to import.

hth


"cwr" wrote in message
news:1F82BD6D-171C-48B1-B112-

...
I have 3 excel files to import....there are 10

fields..there are
duplicates
in these excel files. But what constitutes a

duplicate is that field 2,
field 5 and field 6 cannot be identical. For example

there could be
field 2...field 5...field 6
421 a 1997
421 b 1997
421 b 1998
421 b 1998.....

Only the last two are duplicates. Would it be "silly"

to put all three
fields as multiple-field primary key to import ...to

catch dups...and when
done, reset the primary key to the one field.??



.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple Form Field Question Richard Mailmerge 1 July 13th, 2004 03:01 PM
NUMBERING the pages Bob New Users 7 June 14th, 2004 12:20 AM
field manipulation Steve Running & Setting Up Queries 2 May 28th, 2004 03:12 PM
Make a field lookup dependent on the value in another field of a record? Susan A Database Design 8 May 22nd, 2004 09:10 PM
Auto Number Field Question... James Database Design 3 May 6th, 2004 01:58 AM


All times are GMT +1. The time now is 03:38 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.