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

Manipulation of data

Status
Not open for further replies.

Hendy

Programmer
Oct 3, 2000
20
GB
I have a database field that tells me the name of the pc that a user last logged onto i.e. Lcomp1414. I want to be able to able to display London if the computer name beings with an "L". If "E"(comp1234) they are logged on at our other site.

Thanks
Mark
 
Try

If LEFT(RS("COMPUTERNAME"),1) = "L" Then Location="London" Else Location="Not London"

Hope This Helps...

G
-GTM Solutions, Home of USITE-
-=
 
Thanks. I was a bit too quick off the mark and did it another way but thanks for you help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top