Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Piece of String... 1

Status
Not open for further replies.

traceytr

Programmer
Mar 13, 2001
94
US
Hi.

The season field in my database is displayed like "SP/2001". I need my formula to display only the last four digits without the "SP/". The year will be part of the report header. How do I get it to display just the last four characters?


Thanks,

Tracey
 
{SeasonField}[-1 to -4]
will print the last four characters - it will generate an error if the field has fewer than four characters. To avoid the possible error, you can test the field first using the Length() function. Malcolm Wynden
I'm for sale at malcolm@wynden.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top