Results 1 to 4 of 4

Thread: vb 2005 Checkbox

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2007
    Posts
    5

    vb 2005 Checkbox

    Hello All,

    I know there is a simple answer to this question...

    Using Visual Basic 2005 - I have a value in a table defined as character and it contains either an "A" or "N".

    I want to use a checkbox to indicate "A" = checked or "N" = unchecked.

    This is a bound control.

    Thanks for any information.

  2. #2
    Frenzied Member
    Join Date
    Sep 2006
    Location
    Scotland
    Posts
    1,054

    Re: vb 2005 Checkbox

    Code:
    If variable = "A" Then
        CheckBox1.Checked = True
    Else
        CheckBox1.Checked = False
    End If

  3. #3
    Hyperactive Member
    Join Date
    Dec 2006
    Location
    UK
    Posts
    489

    Re: vb 2005 Checkbox

    In a table? what kind?

    A simple if statement should do it

    if table = A or N then
    checkbox1.checked = True
    Learning C♯

    Data Binding & Bound Controls - Objects and wizards will never be as intelligent as you, do it yourself! (Unless your Pro)

  4. #4

    Thread Starter
    New Member
    Join Date
    May 2007
    Posts
    5

    Re: vb 2005 Checkbox

    It is bound to an Oracle table. I have another column that contains a "1" or "0" and they display and update just fine.

    Thanks,
    Carl

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width