populate listbox with Enum Values

J

JohnFol

You can't.

In .Net you can enumerate through the members of the enum, but not in Access
 
T

Tim Ferguson

How can I populate a listbox with the member values of
an ENUM ?

lisBox.RowSource = "0;1;2;3;4;5"

Enum types are all integer values, and run consecutively unless you specify
otherwise.

The variable names are only available to VBA code anyway, so there is
absolutely nothing the user could do with them even if he or she saw them.

B Wishes


Tim F
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top