kermit5
07-03-2002, 10:02 AM
Hello.
I would like to know how to restrict the user from using identical values but only for a specific record type. Let me explain.
A project is set up with a MasterProjectID. This is an indexed value and is a primary key so each project has a unique MasterProjectID.
Each project has several value types. For example, each project has many door numbers. This is stored in a separate table, tblOpeningTakeoff which has a one-to-many relationship with the table, tblProjectInfo containing the MasterProjectID (among other pproject specific information). I want to limit the user from duplicating values such as door numbers within a specific project.
For example, Project 1 may have the following door numbers:
100
101
101A
102
.
.
.
Project 2 may have the following door numbers:
100
105
110
.
.
.
These are both valid scenarios.
What I need to do is the following. If the user enters the following door numbers:
100
101
102
101
An error message would appear informing the user that door number 101 has already been used and that this is an duplicate value (not OK) etc.
How can I do this?
I would like to know how to restrict the user from using identical values but only for a specific record type. Let me explain.
A project is set up with a MasterProjectID. This is an indexed value and is a primary key so each project has a unique MasterProjectID.
Each project has several value types. For example, each project has many door numbers. This is stored in a separate table, tblOpeningTakeoff which has a one-to-many relationship with the table, tblProjectInfo containing the MasterProjectID (among other pproject specific information). I want to limit the user from duplicating values such as door numbers within a specific project.
For example, Project 1 may have the following door numbers:
100
101
101A
102
.
.
.
Project 2 may have the following door numbers:
100
105
110
.
.
.
These are both valid scenarios.
What I need to do is the following. If the user enters the following door numbers:
100
101
102
101
An error message would appear informing the user that door number 101 has already been used and that this is an duplicate value (not OK) etc.
How can I do this?