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

How can I determine if the last character in a text field is plural? 1

Status
Not open for further replies.

wbwillson

Technical User
Oct 7, 2002
52
GB
I have a last name text field and I want to be able to determine if the last name is plural or not so I can add an aprostrophe. For example, if the person's last name is "Doe" then I want access to Change it "Doe's". If the last name is "Simmons" I want it to change to "Simmons'". Any ideas?

Thanks

Bill
 
Hi

If Right(LastName,1) = "s" Then
LastName = LastName & "'"
Else
LastName = LastName & "'s"
End if

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Ken,

Thanks alot! That worked perfectly!

Bill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top