Best method to hide

J

Jeff Uchtman

What's the best method to hide, or not show a certain record when doing a
pull from a database, as in I am pulling a list with a dozen category's and
I don't what to show one of them.

Thanks
Jeff
 
M

martin de vroom

put a where clause in your db select statement to ensure the value you do
not want does not come back from the database in the first place.

alternatively

loop through your records.

if rs.("dbvalue") = "value to hide"
'dont show the value.
else
response.write('value is ' & rs.("dbvalue") )
end if

you could probabally do this more efficintly using getrosws. but best to
limit the rows at source with a where clause.

cheers

martin.
 
J

Jeff Uchtman

Clause worked great.

Thanks
Jeff


martin de vroom said:
put a where clause in your db select statement to ensure the value you do
not want does not come back from the database in the first place.

alternatively

loop through your records.

if rs.("dbvalue") = "value to hide"
'dont show the value.
else
response.write('value is ' & rs.("dbvalue") )
end if

you could probabally do this more efficintly using getrosws. but best to
limit the rows at source with a where clause.

cheers

martin.
 

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,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top