Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi
I have a field which has a naming convention of Name - Year - Type
I want to just get the type from this so I use the expression:
=Right([FieldName],len([FieldName])-FindOneOf([FieldName], '-',2)-1)
The problem is I have found some names contain '-' which means it pulls part of the name as well.
How can I use the findoneof function with wilcards to find 'YYYY -'
Thanks in advance for your help.
Jon
does Type contain '-' to?
No.
this expression should do what you want:
subfield(FieldName,'-',SubStringCount(FieldName,'-'))
sory i mean :
subfield(FieldName,'-',SubStringCount(FieldName,'-')+1)
Perfect! Thank you.