|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
If Field = 0 Then Don't Print
Hey Guys need some help I want something not to print if the field is = to zero... here is my code
Code:
If oRS.EOF OR oRS.BOF Then
Response.Write "No Records Found"
Else
oRS.MoveFirst
Do While NOT oRS.EOF
Response.Write oRS("AssemblyName") & "<br>"
Response.Write oRS("NumberOfPartA") & "<br>"
Response.Write oRS("NumberOfPartB") & "<br>"
Response.Write oRS("NumberOfPartC") & "<br>"
Response.Write oRS("NumberOfPartD") & "<br>"
Response.Write oRS("NumberOfPartEK") & "<br>"
Response.Write oRS("NumberOfPartEA") & "<br>"
Response.Write oRS("NumberOfPartEB") & "<br>"
Response.Write oRS("NumberOfPartF") & "<br>"
oRS.MoveNext
Loop
End If
What I was wanting was if say NumberOfPartA is zero then don't print it. Is there some If Then Statement that I could use? |
|
#2
|
|||
|
|||
|
if oRS("NumberOfPartA") <> 0 then
Response.Write oRS("NumberOfPartA") & "<br>" end if |
|
#3
|
|||
|
|||
|
Thanks Man That Worked
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > If Field = 0 Then Don't Print |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|