Solved

Preventing duplicate entries

Posted on 2011-09-08
4
216 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

630 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