473,397 Members | 1,960 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Best method to hide

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
Jul 19 '05 #1
2 1638
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.

"Jeff Uchtman" <uc*****@megavision.com> wrote in message
news:uN**************@TK2MSFTNGP10.phx.gbl...
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

Jul 19 '05 #2
Clause worked great.

Thanks
Jeff
"martin de vroom" <ma***********@hotmail.com> wrote in message
news:eM**************@TK2MSFTNGP10.phx.gbl...
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.

"Jeff Uchtman" <uc*****@megavision.com> wrote in message
news:uN**************@TK2MSFTNGP10.phx.gbl...
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


Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

131
by: Peter Foti | last post by:
Simple question... which is better to use for defining font sizes and why? px and em seem to be the leading candidates. I know what the general answer is going to be, but I'm hoping to ultimately...
9
by: Robb Gilmore | last post by:
Hello, This is probably an easy one, but I have not been able to figure it out so far. I have a tab control on a windows forms app. Depending on some business logic, I need to hide/show some...
8
by: Jeroen Smits | last post by:
To Microsoft or other people who are interested, I have a feature request: I would really like to have an option to 'hide' a property or method from an inherited class. For example when I create...
2
by: Joe Bloggs | last post by:
I have a general question on best practice regarding data access. I have the code below, a static method defined in a class that I use in a data layer dll. The method takes a string as its...
3
by: Andre Ranieri | last post by:
I'm building an multiform Windows application that I anticipate will grow to contain many forms. I would appreciate some "best practices" advice on the cleanest way to call one form from another....
0
by: Efkas | last post by:
I have a full custom application with some widged extending Controls like Label and PictureBox. I build a menu with these widgets. When I click on one of them, it calls a function to display...
8
by: redeagle | last post by:
I'm wondering what the best practice is for creating a WinApp "wizard" that contains 4 or 5 "steps". Options so far are 1) Single WinForm making various controls visible/non visible at the...
4
by: Jeff | last post by:
Hey ASP.NET 2.0 I'm about to create a UserControl for my web project, but I'm wondering if I need to create 2 UserControls instead. Because these UserControls will be very similar, the only...
5
by: GenCode | last post by:
What is the best way to read a "readable" web directory... I know I can do this Client.DownloadFile("http://www.mydomain.com/readabledir/", c:\ \dir.txt"); But that gives me the html and all...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.