473,385 Members | 1,640 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Prevent Duplicate records based on multiple fields

Hello,
I have a delima that I am not sure how to resolve. Records get entered
manually or through an import. The records contain, RecordID, Client ID,
Specimen Date, Visit Date, Client DOB, and other info on the client. The
problem is, we bill off this information, and it is possible that the same
client can be entered more than once. So I need to have a unique record
based on Client, Visit (or) Specimen Date, and date entered. Presently, all
this stuff is in one table. I though I may be able to split the info out,
but I would still run into the same issue without a prompt which could become
kind of a pain as they could (theoretically) have the same client entered
(depending upon test results, etc.) multiple billing cycles in a row.

Any ideas?
--
Message posted via http://www.accessmonster.com
Nov 13 '05 #1
1 3243
Kathie G via AccessMonster.com wrote:
Hello,
I have a delima that I am not sure how to resolve. Records get entered
manually or through an import. The records contain, RecordID, Client ID,
Specimen Date, Visit Date, Client DOB, and other info on the client. The
problem is, we bill off this information, and it is possible that the same
client can be entered more than once. So I need to have a unique record
based on Client, Visit (or) Specimen Date, and date entered. Presently, all
this stuff is in one table. I though I may be able to split the info out,
but I would still run into the same issue without a prompt which could become
kind of a pain as they could (theoretically) have the same client entered
(depending upon test results, etc.) multiple billing cycles in a row.

Any ideas?


I'm no database architect but I'd say you have a classic problem with a
lack of structure here.

As you say, you need unique information about your clients. This is a
sure sign you should have a separate table for Clients. A clients table
would contain information about clients and *only* about clients. It
would contain a primary key (ClientID) name, DOB, gender, etc. It would
not contain (in all liklihood) any information about an encounter.

Then you have encounters. An encounter involves a client, on a specific
date, at a certain time, and with some services/charges. So you need an
EncounterID, a reference to the ClientID, DOS, time, SpecDate, and...
charges?

Then you need a charges table, because there can be many charges for one
encounter. So you have a unique ChargeID, a reference to the
EncounterID, and (maybe) charge description, amount, charge type (pro,
lab, xray). Or maybe all the latter stuff goes into a more or less
static services table.

Then maybe you need an insurance table, with references to the client,
date entered, insurance name, coverage dates, etc...

Hopefully can see where this is going. All the business processes you
have ("encounter", "charge", "bill") are separate entities. Your clients
are separate entities. These entities, kept in separate tables, are what
a relational database is all about.
--
Smartin
Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Rado | last post by:
Hi All, This might quite simple process for some but I am finding it really difficult to do. What is required is not a standard Duplicate query but a variation on it. For example I have...
9
by: Catherine Jo Morgan | last post by:
Can I set it up so that a certain combination of fields can't contain the same entries, on another record? e.g. a combination of FirstName/LastName/address? Or FirstName/LastName/phone? Or...
4
by: suffrinmick | last post by:
Hi everyone! I (Along with the help of some of you guys!) have managed to get a query working which takes multiple values (types of organisation) from a list box. The query returns a list of...
2
by: zeke | last post by:
Any assistance is much appreciated... I have a table with duplicate record information and I need to remove certain records based on values in four different fields. For example: PK field ...
18
by: Gleep | last post by:
I've searched google intensely on this topic and it seems noone really knows how to approch this. The goal I don't want clients to give out their usernames and passwords to friends, since the site...
4
by: mcca0081 | last post by:
hi - i'm trying to delete one of the duplicate records based on the most current date. here's the code for my access 2000 db. any help would be appreciated!!! - thank you kindly Sub...
2
Zwoker
by: Zwoker | last post by:
Greetings everyone, I have a problem that I hope has a simple solution. I am using MS Access 2003. I have a table that is a list of financial transactions. I am using a make table query over...
1
by: colin-whitehead | last post by:
I have 2 tables tblReports primary key UPN, plus numeric fields Effort, Attain, etc tblComments numeric primary key ID & textfield Text In the Query I select each record from tblReports...
4
by: jbrumbau | last post by:
Hello, I have been successfully using a database I've created for several months to populate an equipment list for a project we've been working on. However, the form has recently stopped working...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.