Solved

Preventing duplicate entries

Posted on 2011-09-08
4
172 Views
Last Modified: 2012-05-12
I have a database that I enter refunds checks in, the problem I am having is preventing duplications.

I have two vendors with the same check number, so I can’t make the check number unique.  

I can’t used the vendors’ name because the vendor’s name is used repeatedly used because of multiple checks received.  

Can anyone advise on how I can resolve this issue?
0
Comment
Question by:Delores_C
  • 2
  • 2
4 Comments
 
LVL 77

Expert Comment

by:peter57r
ID: 36504242
You have to use both fields.
In your table design create a unique  index based on both fields.
In the index dialog select the name and in the next line select the the check number.
Then assign a name to the index name (e.g. NameNumber) against the Name field and set it to Unique = Yes.
0
 

Author Comment

by:Delores_C
ID: 36504322
Can you explain a little more?  Not quite understanding
0
 
LVL 77

Accepted Solution

by:
peter57r earned 125 total points
ID: 36504548
Look at the attached example  - you have the table open in design view and choose Indexes from your menu or ribbon.
Then specify both fields in the centre column and give the composite index a name in the left column.
Set the Unique option to Yes as shown.
index.JPG
0
 

Author Closing Comment

by:Delores_C
ID: 36504892
works great!  Thanks alot
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

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…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

744 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

14 Experts available now in Live!

Get 1:1 Help Now