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!

Conditional Text? 1

Status
Not open for further replies.

robbie59

Technical User
May 9, 2001
36
US
I know this is probably easy I just can't seem to make it work I want to show text if a record is other than zero such as

if (RSEDIT.Fields.Item("AssignTranID").Value)='1' then response.write "trannyname" else if (RSEDIT.Fields.Item("AssignTranID").Value)= 2 then response.write "anothertrannyname" else " "

so on and so on
I appreciate any help with this

If knowledge were power I would be a AAA battery!
 
Hi...
I dont know what you realy want to do, but as I understand, maybe if you use Select Case, it will be easier... :
Select Case cInt(RSEDIT("AssignTranID"))
Case 1:
response.write "trannyname"
Case 2:
response.write "anothertrannyname1"
Case 3:
response.write "anothertrannyname2"
Case Else
response.write "anothertrannyname3"
End Select

----
TNX.
E.T.
 
Thanks That Worked Great!

If knowledge were power I would be a AAA battery!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top