antonyx
Arsenal Supporter
- Local time
- Today, 18:07
- Joined
- Jan 7, 2005
- Messages
- 556
hi.. i have a tickbox that when ticked adds
' (M&G)' to the end of my jobfrom field.. here is the code..
so the job from field will contain
This House
you tick the box and it displays..
This House (M&G)
which is fine.. but when you click it again.. (and the checkbox value is false)
it does this..
This House (M&G) (M&G)
the rule is that if that checkbox is ticked.. then the jobfrom field will always contain the string ' (M&G) inside it..
so if i untick the checkbox.. how can i change that code so that it acknowledges the field already contains the ' (M&G)' and therefore removes it..?
' (M&G)' to the end of my jobfrom field.. here is the code..
Code:
Private Sub JobMg_Click()
Me.txtjobfrom = Me.txtjobfrom & " (M&G)"
End Sub
so the job from field will contain
This House
you tick the box and it displays..
This House (M&G)
which is fine.. but when you click it again.. (and the checkbox value is false)
it does this..
This House (M&G) (M&G)
the rule is that if that checkbox is ticked.. then the jobfrom field will always contain the string ' (M&G) inside it..
so if i untick the checkbox.. how can i change that code so that it acknowledges the field already contains the ' (M&G)' and therefore removes it..?