pmkprog Posted June 16, 2004 Posted June 16, 2004 I have a string of text ("AAA1000project1", "AAA1001project2", etc.) that is used as an identifier for projects. This field is a text field. I need to write a script that checks the triple letters and the number but drops the rest of the text in the field and compares the new entry (which is done manually) to the existing records so that the number is not duplicated. I do not want to create more fields and break this one field up, unless there is no other way to do so.
-Queue- Posted June 16, 2004 Posted June 16, 2004 If you create one extra calculation text field equal to Left( field, Position( field, "project", 1, 1 ) - 1 ) and a self-relationship from this field to itself, then your script can Exit Record/Request and test If [ Count( selfrel::id ) > 1 ], in which case there are duplicates.
Recommended Posts
This topic is 7468 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now