K
KsFireworksGal
How can I make a primary key out of more than one field in Access 2000 - is
there a way to code it using SQL?
there a way to code it using SQL?
Douglas J. Steele said:Take a look at
http://msdn.microsoft.com/en-us/library/aa140015(office.10).aspx
(although its sample
ALTER TABLE tblCustomers
ADD CONSTRAINT CustomerNames UNIQUE
([Last Name], [First Name])
is a terrible example: names rarely make good indexes!)
--
Doug Steele, Microsoft Access MVP
(no e-mails, please!)
KsFireworksGal said:How can I make a primary key out of more than one field in Access 2000 -
is
there a way to code it using SQL?
Thank you for the information it gives me a good place to start. I am using
products that don't always have a bar code and some of the names are the same
but refer to different items we were using an item number based on the last
five of the bar codes, but not everything has a barcode, so I am trying to
figure out a better primary key than the barcode or item number and I thought
if I combinded the name with an item number maybe that would work.