Hello
I have a text field RawName which is indexed as 'no duplicates'
In some cases, my program tries to add a new record with text in RawName that is identical to an existing record, except that it has a space before the first letter. It recieves the error that this would create a duplicate entry.
For example:
Existing: "Aciagrion fragilis"
New: " Aciagrion fragilis" - not accepted
However, when performing a join these text strings are not treated as identical, so I can't simply treat these two values as equivalent.
Can someone explain the underlying rules in how Access handles text values like these, and perhaps what I could do about it.
I am reluctant to strip all leading spaces from my data (unless there is no alternative) because I already have many other records which do match on a text string with a leading space. In those cases the same string minus leading space is not in the table, hence no problem with duplicate entries.
thanks
Dan
I have a text field RawName which is indexed as 'no duplicates'
In some cases, my program tries to add a new record with text in RawName that is identical to an existing record, except that it has a space before the first letter. It recieves the error that this would create a duplicate entry.
For example:
Existing: "Aciagrion fragilis"
New: " Aciagrion fragilis" - not accepted
However, when performing a join these text strings are not treated as identical, so I can't simply treat these two values as equivalent.
Can someone explain the underlying rules in how Access handles text values like these, and perhaps what I could do about it.
I am reluctant to strip all leading spaces from my data (unless there is no alternative) because I already have many other records which do match on a text string with a leading space. In those cases the same string minus leading space is not in the table, hence no problem with duplicate entries.
thanks
Dan