-
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.
-
Re: vb 2005 Checkbox
Code:
If variable = "A" Then
CheckBox1.Checked = True
Else
CheckBox1.Checked = False
End If
-
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
-
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