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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Course Names with Missing Pound Signs ("£") 1

Status
Not open for further replies.

jannoth

MIS
Oct 9, 2007
60
0
0
CA
I'm trying to identify courses which have been set up incorrectly : the last part of the text field Activity.Name should contain a pound sign followed by a numberic value at the end

Correct: Course Name £5000
Incorrect: Course Name 5000
Incorrect: Course Name

Can someone please suggest a way of listing records which don't contain correctly formatted contents in Activity.Name?

Thanks

J
 
Do two tests:
Code:
"£" in {your.field}
Code:
 Ubound({your.field}, " ") = 3
First put them next to the data, to confirm they work and maybe show up the need for extra tests. Test 1 would also work with the "£" somewhere else, and you could also try
Code:
Left(Split({your.field}, " ")[3]),1) = "£"
It also depends on what else is valid, e.g.
Code:
Special Maths Course £333
would fail but you could adjust the code yourself.

[yinyang] Madawc Williams (East Anglia, UK). Using Crystal 10 & 11.5 with Windows XP [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top