I am using a pop up form with a combo box (cboPractices) that when a practice is selected in the combo box and double clicked, the value of the combo box is added to another form that is open (f_Requests) and creates a comma separated list in the txtPractices field. This does what I need it to do, but the problem I found is that sometimes when a value is double clicked, that value will replace the previous value in the master table...creating duplicate values. I only want the values selected to create a comma separated list in the txtPractices field, not replace the values in the master table. Can this be fixed?
The code I'm using is...
Private Sub cboPractices_DblClick(Cancel As Integer)
Dim txtP As String
txtP = Nz(Forms!f_Requests.txtPractices, "")
If Len(txtP) > 0 Then
Forms!f_Requests.txtPractices = txtP & ", " & cboPractices
Else
Forms!f_Requests.txtPractices = cboPractices
End If
End Sub