james_lankford
Well-known Member
- Joined
- Jan 11, 2009
- Messages
- 1,223
so let's say I have a combobox that is getting its data from a table of Colors
the table contains
Red
Green
Blue
so the combobox shows those values
the user goes to the combobox and enters Purple
the notinlist event gets triggered, I pop up a message, they say yes, I insert Purple into the Colors table and all is well
later the user goes to the combox and enters "______Purple"
no quotes, no underscores, I'm just showing that they're entering a bunch of spaces followed by some text
well, " Purple" is not in the colors table,
so the notinlist event gets triggered, I pop up a message, they say yes, I insert " Purple" into the Colors table and all is not well
I do not want " Purple" in the table
as far as I'm concerned its a duplicate of Purple
I also do not want a new entry of "____________________Orange"
but I cannot figure out how to do this
surely I can't be the first one with this problem, anyone got any ideas ?
the table contains
Red
Green
Blue
so the combobox shows those values
the user goes to the combobox and enters Purple
the notinlist event gets triggered, I pop up a message, they say yes, I insert Purple into the Colors table and all is well
later the user goes to the combox and enters "______Purple"
no quotes, no underscores, I'm just showing that they're entering a bunch of spaces followed by some text
well, " Purple" is not in the colors table,
so the notinlist event gets triggered, I pop up a message, they say yes, I insert " Purple" into the Colors table and all is not well
I do not want " Purple" in the table
as far as I'm concerned its a duplicate of Purple
I also do not want a new entry of "____________________Orange"
but I cannot figure out how to do this
surely I can't be the first one with this problem, anyone got any ideas ?