Hi all,
I have several listboxes on an MS Access form in VBA. At the moment, I use a listboxname_AfterUpdate to pass the value of the listbox selection to the tag of a button, so that when the button is clicked the value of current listbox selection is known and can be used within the buttonname_click sub.
Is there another way this can be done? I would prefer the listboxes are dynamically created (their names are based upon categories retrieved from Outlook, which can be added to over time) to avoid having to create a listboxname_AfterUpdate for every single category. I looked into WithEvents, but sadly this does not support AfterUpdate.
Regards,
Mozzie
I have several listboxes on an MS Access form in VBA. At the moment, I use a listboxname_AfterUpdate to pass the value of the listbox selection to the tag of a button, so that when the button is clicked the value of current listbox selection is known and can be used within the buttonname_click sub.
Is there another way this can be done? I would prefer the listboxes are dynamically created (their names are based upon categories retrieved from Outlook, which can be added to over time) to avoid having to create a listboxname_AfterUpdate for every single category. I looked into WithEvents, but sadly this does not support AfterUpdate.
Regards,
Mozzie