setting a listbox to a variable


I've tried several variations of the following code I can't seem to get it to work.

dim jbox as ListBox

Set jbox = Forms!frmMain.lstFund '("lstFund")

I want jbox to be the listbox so that I can use the following line:

If InputFund = jbox.Selected(d) Then
IsDuplicate = True
Exit Do
End If

Thank anyone,

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!