?
Solved

VB.net Hide checkbox once product has been sold

Posted on 2009-05-12
2
Medium Priority
?
261 Views
Last Modified: 2012-05-06
I need to figure out how to Hide a product (Exclusive Back Cover) once it has been sold. I know that I will need to query the database and see if BackCover = 1 and if so no longer show the checkbox ckBackCover.

I am not sure how to query the database and search through all records
0
Comment
Question by:Albee_J
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
mpeaden2 earned 2000 total points
ID: 24366418

please mark as answer if this helps...
'Read all Potting Types and select only distinct
        cmdSql = New SqlCommand("SELECT statement here", sqlCon)
        Dim DA As New SqlDataAdapter(cmdSql)
        Dim DT As New DataTable
        Dim DR As DataRow
        Dim Counter As String = Nothing
        'Fill dataset
        DA.Fill(DT)
        
        For Each DR In DT.Rows
            'Place your show/hide code here
        Next
        'Finshed with Adapter/Datatable
        DA.Dispose()
        DT.Dispose()

Open in new window

0
 

Author Comment

by:Albee_J
ID: 24366499
Thank you!  I will implement and advise.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question