I have a list box that receives data from a table, Gifts. I also have a text box, GIFTS, and I want to be able to add multiple gifts per person. I have the following event written in the lsbGifts dbl click event:
Private Sub lsbGifts_DblClick(Cancel As Integer)
If Len(Me.Gifts) = 0 Then
Me.Gifts = Me.lsbGifts
Else
Me.Gifts = Me.Gifts & ", " & Me.lsbGifts
End If
End Sub
When I dbl click on the lsbGifts, I receive an error message;
The expression ON DBL CLICK you entered as the event property setting produced the following error: Procedure declaration does not match description of event or procedure having the same name.
Plus, it erases the first choice and replaces the first choice with the second choice; it should be additive.
Any help would be appreciated. (Access newbie)
(It also makes a selection on single click too. ??)
Private Sub lsbGifts_DblClick(Cancel As Integer)
If Len(Me.Gifts) = 0 Then
Me.Gifts = Me.lsbGifts
Else
Me.Gifts = Me.Gifts & ", " & Me.lsbGifts
End If
End Sub
When I dbl click on the lsbGifts, I receive an error message;
The expression ON DBL CLICK you entered as the event property setting produced the following error: Procedure declaration does not match description of event or procedure having the same name.
Plus, it erases the first choice and replaces the first choice with the second choice; it should be additive.
Any help would be appreciated. (Access newbie)
(It also makes a selection on single click too. ??)