I have a form with tick boxes on it which when pressed runs an afterupdate macro that inputs data into my table. Which works fine except when a user changes their mind and unselects the tickbox - access goes and puts the same field into the database...
the code is as follows:-
Private Sub Check2_AfterUpdate()
Me.Features = Nz(Me.Features) & ",value to be added to database"
End Sub
Ideally what I need it to do is remove the value added to the database but the problem is that I have five tick boxes on my form and all five could be ticked and then the first unselected. As you can see the afterupdate script adds to the value in the database field I therefore need somehow to strip just that portion of the text.
Have I over complicated this or could I do this another way?
Thanks for any help.
Sags
the code is as follows:-
Private Sub Check2_AfterUpdate()
Me.Features = Nz(Me.Features) & ",value to be added to database"
End Sub
Ideally what I need it to do is remove the value added to the database but the problem is that I have five tick boxes on my form and all five could be ticked and then the first unselected. As you can see the afterupdate script adds to the value in the database field I therefore need somehow to strip just that portion of the text.
Have I over complicated this or could I do this another way?
Thanks for any help.
Sags