doesnt display char type data field length 1

D

dave

Hi
I m facing strange problem...
I have one field char type data length 1..
It has data either 1 or 2 in all the field tht I have
checked through enterprise manager.

I'm running query
"select * from table" and fetching all the records and
displaying...
It display all the data except data from this
field..Doesnt display anything..

I had put Response.write rs("fieldname")

What could be the problem?
Any help would be grateful.
Thanx

dave
 
R

Ray at

What happens when you just do "select [fieldname] from table?"

And then you do:

Response.Write rs.Fields.Item(0).Value

Ray at home
 
D

dave

Thanx
I found the what the problme was.
Previous field containing null data so it was affecting
next field data...
my code was
<td><%=rs("field0")%></td>
<td><%=rs(field1)%></td>
now if field0 contains null value, then it also doesnt
display field1 data..very strange isnt it??
neway, i found it so no proble..
thanx for your help
dave
-----Original Message-----
What happens when you just do "select [fieldname] from table?"

And then you do:

Response.Write rs.Fields.Item(0).Value

Ray at home

Hi
I m facing strange problem...
I have one field char type data length 1..
It has data either 1 or 2 in all the field tht I have
checked through enterprise manager.

I'm running query
"select * from table" and fetching all the records and
displaying...
It display all the data except data from this
field..Doesnt display anything..

I had put Response.write rs("fieldname")

What could be the problem?
Any help would be grateful.
Thanx

dave


.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,154
Messages
2,570,870
Members
47,400
Latest member
FloridaFvt

Latest Threads

Top