HerbAndEdnaWeinstein
Technical User
Hi, I'm a beginner designing a form in VBA and I understand how to invoke some code when a certain event happens: simply go to the code view and start a procedure called something like FooButton_Click(). Then, whatever code is under that heading will be executed when FooButton is clicked.
However, I have a series of listboxes that I want populated automatically (based on information from the application) before anything else happens. Thus, there is no "event" I'm waiting for. I tried going to code view and creating a procedure called FooListBox and then invoking the population code, but i get the error that FooListBox already exists (which it does, because that's the name of the list box in the form view.)
Sorry for the verbosity, I just wanted to be clear. Thanks in advance for any help.
Herb Weinstein
However, I have a series of listboxes that I want populated automatically (based on information from the application) before anything else happens. Thus, there is no "event" I'm waiting for. I tried going to code view and creating a procedure called FooListBox and then invoking the population code, but i get the error that FooListBox already exists (which it does, because that's the name of the list box in the form view.)
Sorry for the verbosity, I just wanted to be clear. Thanks in advance for any help.
Herb Weinstein