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

convert number to text

Status
Not open for further replies.

grabrail

Technical User
Aug 15, 2001
269
GB
Hi

sorry for the simple question, but this escapes me.

I have a simple select query that gets me 3 pieces of information from a database.

servername, taskname and status

now, status is a number from 1 to 5, each number as a particular meaning, ie 3 = not running.

What I want my query to display is "not running" instead of 3.

How do I achieve this.

Cheers
 
You can use the CASE function


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Great thanks, I have acheived what I need with this.

Thanks again
 
Just a thought, Why not use some internal table where you could keep Status texts. It would be easier if after a while you add some additional status messages.

Borislav Borissov
VFP9 SP1, SQL Server 2000/2005.
MVP VFP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top