I have a combo box in ms access 2010. Combo box has 3 values. for example: admin, user, super_user; and are stored in table type.
In another table/view I input users. and one field is combo box where I can select 1 or more user types.
My Requirement: I want to create macro->
IF [USERS].[TYPE] = admin, then do something ON INSERT.
-but I can't access that element. I tried with:
([USERS].[TYPE].[Value])1 = "admin"
([USERS].[TYPE].[Value])1 = 1
[USERS].[TYPE].Value(1) = "admin"
[USERS].[TYPE].[Value]1
[USERS].[TYPE].Column(1) = 1
.........................
.............
and much more variation(different combinations), but I can't see what value is selected.
Using query wizard I built query like this:
SELECT korisnici.vrsta.Value
FROM korisnici
WHERE (((korisnici.vrsta.Value)=1));
and result is 'administrator'
does somebody knows how to access that value of combo box?