Hi everyone,
I am writing a code to add people names into a Textbox by click on a checkbox Yes/No
The textbox is named "Teamworktxt" and the checkboxes are "Qualitychk", "Maintenancechk", "Productionchk", "Engineeringchk"
I want everytime when I click on the check box.. the people in charge of the department will be included into the "Teamworktxt"no matter what this textbox has already info (I dont want to delete the previous info)
The idea is to create the list of people that will be working on the project
My Code
************************************************
Private Sub WT_Quality_Click()
If Me.WT_Quality = -1 Then
Dim Quality As String
Quality = "Quality"
Me.TeamWorktxt = DLookup("[Name]", "[Team_Work]", "[Departament]= '" & Quality & "'")
End If
End Sub
**********************************************
I have also the same code for each Checkbox but obviously when I click on one of them, it takes the info and replace it with the new one
Does someboy have any idea to correct this?