Hi all,
I have a form in Access with a listbox on it. The forms works as expected. But now I want to assign this listbox to a variable in a piece of new code.
MyListBox is exactly the name of the listbox. But when I evaluate the variable ctrl after this piece of code executes, the value of the variable is Null.Code:Dim ctrl As Control Set ctrl = Me![MyListBox]
Option Explicit is set on this form. What am I doing wrong here?
Thanks in advance,
Nils Gruson