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!

Format stings 1

Status
Not open for further replies.

nicklewisj

IS-IT--Management
Nov 9, 2006
11
GB
Hi there got a slight problem with formating a string ive done this before but too long ago need some reminding

all im trying to do is get the frist two letters from a code eg

bd1001 all i want to use is the bd

currently got

prefixedcodedigits = Format(prefixedcode, "##")
but does not work

any help would be brill
 
Hi....


prefixedcodedigits = left(prefixedcode,2)
 
legend cant believe i forgot that one cheers again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top