D
Dave L
I have an Access MDB table that contains three fields which I want to combine
and use as an index. The fields are a number and two dates. The second date
is optional. I want this index to allow only unique values for the data that
is supplied.
If all three fields are filled in, I get the behaviour that I want: I can't
enter another record with the same three values. However, if one or two of
the values are not entered (null), Access appears to ignore this record as an
index value.
ie: I can enter the same two values again, which I don't want.
Bottom line: any record that is missing one or two values is not included as
an index value.
I'm using Access 2003. The index is set up with Primary=no, Unique=Yes,
IgnoreNulls=no. Changing IgnoreNulls does not change the behaviour.
Any ideas on how to set up an index that will work with either two or three
values? Using two indexs (one for 2 values, one for 3 values) doesn't work,
since the 2 value case can duplicate part of the 3 value case.
I thought that IgnoreNulls would do this, but it doesn't...
Thanks,
Dave L
and use as an index. The fields are a number and two dates. The second date
is optional. I want this index to allow only unique values for the data that
is supplied.
If all three fields are filled in, I get the behaviour that I want: I can't
enter another record with the same three values. However, if one or two of
the values are not entered (null), Access appears to ignore this record as an
index value.
ie: I can enter the same two values again, which I don't want.
Bottom line: any record that is missing one or two values is not included as
an index value.
I'm using Access 2003. The index is set up with Primary=no, Unique=Yes,
IgnoreNulls=no. Changing IgnoreNulls does not change the behaviour.
Any ideas on how to set up an index that will work with either two or three
values? Using two indexs (one for 2 values, one for 3 values) doesn't work,
since the 2 value case can duplicate part of the 3 value case.
I thought that IgnoreNulls would do this, but it doesn't...
Thanks,
Dave L