toddcolson
asked on
Sequence gap in alpha-numeric field
I have a field with data formated : AB002200, AB002201, AB002203, AB002204, AB002206, etc. The first two characters are always AB followed by 6 numbers. I want a formula to find gaps in the numeric sequence portion of this data. (for example AB002205 is missing in my sample data) I have Crystal Reports 8.5
ASKER
I get matching } for this field name is missing, if I add the brackets to the field name I get the ) is missing.
Sorry { } go around the Crystal field names.
Try this one
PreviousIsNull({YourField} ) or (ToNumber(Right({YourField },6)) - 1 = (Previous(ToNumber(Right({ YourField} ,6)))))
mlmcc
Try this one
PreviousIsNull({YourField}
mlmcc
ASKER
I get field is required here message after: Previous(
That's what I get for copying.
PreviousIsNull({YourField} ) or (ToNumber(Right({YourField },6)) - 1 = (ToNumber(Right(Previous({ YourField} ,6)))))
mlmcc
PreviousIsNull({YourField}
mlmcc
ASKER
Now: To many arguments have been given to this function.
Sorry.
PreviousIsNull({YourField} ) or (ToNumber(Right({YourField },6)) - 1 = (ToNumber(Right(Previous({ YourField} ),6))))
mlmcc
PreviousIsNull({YourField}
mlmcc
ASKER
Now: The string is non numeric
ASKER
Wait, It works!, Now I got it. Thanks
ASKER
It works, but I need a formula that creates a report that continues to show all of the data in the field and somehow marking the gaps. Is that possible?
Yes. How do you want the gaps marked?
mlmcc
mlmcc
ASKER
Maybe like a formula field with the word missing at the gap. Or highlighting. Any report that keeps all the data in the field while at the same time showing the gaps.
Let me think about it. Rather late here now.
mlmcc
mlmcc
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Put the field in the detail section
Right Click the left margin of the detail section
Click FORMAT SECTION
Click the format button next to SUPPRESS
Formula is
PreviousIsNull({YourField}
mlmcc