![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi All, I have a need to test a field at entry time to check if it is Unique. I know there is a standard Unique checkbox in Field Validation, but I want to validate for uniqueness using the Calculate box because I want the uniqueness tested only under certain conditions - not a blanket test. The problem is that I can't find a Unique function for field testing. I can use the Lookup function on a Self Joining field, but that does not provide the same flexibility as the standard Unique test. Is there a separate Unique function, or how can I simulate it. Regards Ron H. |
#3
| |||
| |||
|
|
You may put a self relationship based on that field and set in its definition a calculation SUM of it having to be always 1. Remi-Noel "Ron H." <ronald_h70 (AT) hotttmail (DOT) commm> a écrit : Hi All, I have a need to test a field at entry time to check if it is Unique. I know there is a standard Unique checkbox in Field Validation, but I want to validate for uniqueness using the Calculate box because I want the uniqueness tested only under certain conditions - not a blanket test. The problem is that I can't find a Unique function for field testing. I can use the Lookup function on a Self Joining field, but that does not provide the same flexibility as the standard Unique test. Is there a separate Unique function, or how can I simulate it. Regards Ron H. |
#4
| |||
| |||
|
|
Hi Remi, I am not sure how this is going to test that a text field is unique especially when you consider the 2 scenarios of uniqueness 1. The field to be entered does not have similar data in the same position elsewhere within the table 2. The field contents exist once in the table and that same unique value is overwritten into that same position Could you explain how to use SUM to test for this Best Regards Ron H. "Remi-Noel Menegaux" <rnmenegaux (AT) free (DOT) fr> wrote in message news:42fa2929$0$32640$626a14ce (AT) news (DOT) free.fr... You may put a self relationship based on that field and set in its definition a calculation SUM of it having to be always 1. Remi-Noel "Ron H." <ronald_h70 (AT) hotttmail (DOT) commm> a écrit : Hi All, I have a need to test a field at entry time to check if it is Unique. I know there is a standard Unique checkbox in Field Validation, but I want to validate for uniqueness using the Calculate box because I want the uniqueness tested only under certain conditions - not a blanket test. The problem is that I can't find a Unique function for field testing. I can use the Lookup function on a Self Joining field, but that does not provide the same flexibility as the standard Unique test. Is there a separate Unique function, or how can I simulate it. Regards Ron H. |
![]() |
| Thread Tools | |
| Display Modes | |
| |