If value isn't in combobox list Then.. (1 Viewer)

maw230

somewhat competent
Local time
Yesterday, 18:33
Joined
Dec 9, 2009
Messages
522
Is there a built-in property to check if the value in a combobox is in the RowSource or not?

I want to show a label on my form if the value entered in the combobox isn't in the "list".
 

CJ_London

Super Moderator
Staff member
Local time
Today, 00:33
Joined
Feb 19, 2013
Messages
16,627
depends on your access version but look at the 'not in list' event. If you don't want users to add something that is not in the list set 'limit to list' to yes
 

maw230

somewhat competent
Local time
Yesterday, 18:33
Joined
Dec 9, 2009
Messages
522
I don't think this will work as I don't want to limit to list I just want a warning to display if something isn't in the list.
 

maw230

somewhat competent
Local time
Yesterday, 18:33
Joined
Dec 9, 2009
Messages
522
depends on your access version but look at the 'not in list' event. If you don't want users to add something that is not in the list set 'limit to list' to yes

Hi CJ. The Not in List event only works when Limit to List is set to Yes. I think I will need to go about this a different way.
 
Last edited:

Users who are viewing this thread

Top Bottom