Roly Reefer
Registered User.
- Local time
- Today, 06:36
- Joined
- Jan 28, 2005
- Messages
- 37
Hi,
I have created a database that monitors containers that are being hired. When a container is hired some details are entered and remains the same until we receive an invoice to state that the hire has stopped. Subsequently, the database is updated and an invoice sent. The container is then hired out again and some details are entered on the database and so on.
There are two check boxes to state whether the container hire has been completed and whether the client has been invoiced.
I am attempting to stop duplicate entries of container numbers being entered onto the database when the transactions are not complete and the client has not been invoiced.
I cannot use a primary key because the containers are reused and hence the container number will be on the field more than once. I have also tried a find duplicates query, but this found duplicates in the whole table and returned only the duplicates that were in the criteria I had specified.
Basically, I want the validation or whatever to prevent duplicates only when the two check boxes are 0.
Thanks in anticipation for your help.
All the best,
Roly
I have created a database that monitors containers that are being hired. When a container is hired some details are entered and remains the same until we receive an invoice to state that the hire has stopped. Subsequently, the database is updated and an invoice sent. The container is then hired out again and some details are entered on the database and so on.
There are two check boxes to state whether the container hire has been completed and whether the client has been invoiced.
I am attempting to stop duplicate entries of container numbers being entered onto the database when the transactions are not complete and the client has not been invoiced.
I cannot use a primary key because the containers are reused and hence the container number will be on the field more than once. I have also tried a find duplicates query, but this found duplicates in the whole table and returned only the duplicates that were in the criteria I had specified.
Basically, I want the validation or whatever to prevent duplicates only when the two check boxes are 0.
Thanks in anticipation for your help.
All the best,
Roly