Originally Posted by
carlbowles10
I have some tick boxes and a textbox. if a tick box is ticked then a message is put into the textbox. EG-
if FlaggedSection3 is ticked then the textbox will add "Section 3" to it. An example - if I tick all three tick boxes (FlaggedSection1, FlaggedSection 2 and FlaggedSection3) then the textbox will say:
Section 1 Section 2 Section 3.
However, how do I do it so that if a tickbox is unchecked then the corrisponding message is taken out of the textbox. So if i untick FlaggedSection2 then the textbox will then read:
Section 1 Section 3
my current code for one of the tickboxes is:
Private Sub FlagSection3_Click()
'If Section 3 is flagged then display in the Flagged textbox at the bottom
If FlagSection3.Value = True Then
txtFlagged.Text = txtFlagged.Text + "Section 3 "
End If
End Sub
Similar for the other two tickboxes,
Thanks Carl.