Solved

Index No Duplicates - Foreign Keys

Posted on 2010-08-26
3
422 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 - Access MVP) 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now