Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Loading a Combobox via an Enumeration

$
0
0
Greetings all,

I am new with enumerations, so be gentle...

I have an enumeration that lists types of cards and numeric values (called "cardType"). Our sailing school may soon have to validate credit cards, and I found a validation function on the Internet.

I have an enumeration declaration (eg. VISA = 33; MASTERCARD = 13) in a module (called mod_card_ck). I can call items from the declaration.

I am trying to load the combox thus on formload():

me. cboCard.datasource = System.emun.getvalues(getType(cardType))

Doesn't work (ms access 10 does not seem to recognize "datasource", and the combobox remains empty)

Tried the same with "rowsource". Combobox still won't load, though it recognized "rowsource")

Can't seem to find anything after hours on the net.

Help!

John S
Aylmer, QC

Viewing all articles
Browse latest Browse all 13329

Trending Articles