Solved

Index No Duplicates - Foreign Keys

Posted on 2010-08-26
3
451 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
Question by:RiCzN
  • 2
3 Comments
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform) earned 500 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:RiCzN
ID: 33534072
Thanks
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

856 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