T
Tony_VBACoder
With Access 2002, is there a fast way to determine if a
value exists in a listbox? I have the following function
that will accomplish this, but I didn't know if ACC2002
has come up with it's own Function:
Public Function bIsItemInListBox(sValue As String,
objListBox As ListBox) As Boolean
Dim iIndex As Integer
With Me
For iIndex = 0 To objListBox.ListCount - 1
If sValue = objListBox.ItemData(iIndex) Then
bIsItemInListBox = True
Exit Function
End If
Next
End With
End Function
value exists in a listbox? I have the following function
that will accomplish this, but I didn't know if ACC2002
has come up with it's own Function:
Public Function bIsItemInListBox(sValue As String,
objListBox As ListBox) As Boolean
Dim iIndex As Integer
With Me
For iIndex = 0 To objListBox.ListCount - 1
If sValue = objListBox.ItemData(iIndex) Then
bIsItemInListBox = True
Exit Function
End If
Next
End With
End Function