|
-
Mar 9th, 2001, 02:26 PM
#1
Thread Starter
Fanatic Member
Ok:
I am returning some values from a query. I then take those values and place them in a table. The problem is that when onep of those values is not returned it will not return the entire row. How do I allow some to be blank (cells)?
-
Mar 9th, 2001, 02:44 PM
#2
put an if statement to see if the value is = "" and if it is just stick a space or maybe a dash in the cell instead of the value from the database. ie
If rs("myfield") = "" then
response.write "<td>" & "-" & "</td>"
else
response.write "<td>" & rs("myfield") & "</td>"
end if
does that help?
-
Mar 9th, 2001, 03:01 PM
#3
Thread Starter
Fanatic Member
It definitely helps but I think that my problem is in the query. I am not that great at SQL. I am pullin records from a few diff tables but am nnot using any join statements, would this be the problem?
-
Mar 9th, 2001, 03:48 PM
#4
no its the HTML stuff. I have had the same problem before.
-
Mar 9th, 2001, 04:22 PM
#5
Thread Starter
Fanatic Member
I did this:
<% if objRs("Buddy") = "" then
response.write "<td width=70>" & "-" & "</td>"
else
response.write "<td width=70>" & objRs("Buddy") & "</td>"
end if
%>
It diplays all of the dashes then starts the table...
-
Mar 12th, 2001, 10:31 AM
#6
Thread Starter
Fanatic Member
Any ideas..... I am getting all of the dashes then the table starts.....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|