Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Index No Duplicates - Foreign Keys

Posted on 2010-08-26
3
Medium Priority
?
468 Views
Last Modified: 2012-05-10
Hi Experts,
How do i go about in setting up an index for two foreign fields.

Is it just a matter of selecting Index: Yes (No Duplicates) for the two fields?

In this case the two fields would be ClassProductID and ClassDate.

Thanks

IndexNoDuplicates.jpg
0
Comment
  • 2
3 Comments
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform) earned 2000 total points
ID: 33533955
See the attached example

open table in design view
View>>Indexes
Give the new index a name, MyIndex in this example
Pick the Field Names
Click back in the first row (SeqNumber in this exampe)
Set the Unique property to Yes in the Index Properties window.

"Is it just a matter of selecting Index: Yes (No Duplicates) for the two fields? "
No.

mx
0
 
LVL 75
ID: 33533964
Opps ... now attached.

mx
Capture1.gif
0
 

Author Closing Comment

by:Ronniel Allan Castanito
ID: 33534072
Thanks
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question