[RESOLVED] Problem with checkbox
Hi All
I have several Checkboxes. I have commandbutton also. Every checkboxes it have an assigned a one textbox to which I transfer the data. When I click on the commandbutton I want to make that this data will be only for this textboxes which will have checkbox with value as True (vbchecked) How to make?
When I make something like this
VB Code:
If chkWTY.Value = vbChecked then
txtWTY.Text = SumPio
ElseIf chkGRB.Value = vbChecked then
txtGRB.Text = AsHun
...etc
...etc
End If
it not work
thanks in advance
Re: Problem with checkbox
you probably want independent If statements:
VB Code:
If chkWTY.Value = vbChecked then txtWTY.Text = SumPio
If chkGRB.Value = vbChecked then txtGRB.Text = AsHun
...etc
...etc
Re: Problem with checkbox
Thanks Bush, very thanks, it works fine.