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

part of a string in VB

Status
Not open for further replies.

sham14

MIS
Joined
May 14, 2003
Messages
42
Location
NL
I am trying to extract just a substring from a string in access. I want to do like the following:

fullstring = "john"
partstring = .....how do i get part of the string - for example read the last two digits to have partstring = "hn"

Thanks in Advance.
 
Try the Right function:

Code:
Right([fullstring],2)
 
Thanks Cosmo - worked great
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top