-----Original Message-----
Hi Mark
Sorry about the delay - I wanted to find time to test what I was going to
say to make sure I wasn't leading you up the garden path.
First, BoundColumn should be 1, not 0. Setting BoundColumn to 0 is a
special feature to return the ListIndex of teh combobox (instead of the
contents of one of the columns) as the value property - 0=row1, 1=row2, etc
Second, I didn't guess you were talking about a value list, so of course
there is no need to add a record to some underlying table. The NotInList
event is of no use to you here.
Third, I have tested this and it works:
Combo with these properties:
ControlSource: <numeric field in table>
RowSourceType: Value List
RowSource: 1;2
ColumnCount: 1
ColumnWidths: <null>
LimitToList: No
As expected, in the dropdown I get only the values 1 and 2, but I can quite
happily type in 3, and it is stored in my table.
--
Good Luck!
Graham Mandeno [Access MVP]
Auckland, New Zealand
excellent essay
My BoundColumn property is 0
My ColumnWidths property is null and void
My column count is 1
My Row source type is Value list
My row source is 000;0005;010;015;020;............180....
LimitToList refuses to set to No
add
a new record to your rowsource if the typed text is not
I just want to store a valuein that field that is not in
the value list, like 006
Even if I change Bound Column form zero to one
and if I change Column width to .5" form Null,
I still can't change LIMITtoLIST to NO
rowsource table
Do you mean the value list in my case?
(My values will never change, I don't need a lookup table
to store them - I am just trying to provide for some one
to change a 005 to a 006 for the rare blue moon event.)
This I have never done before:
If such code is still necessary, could you show it to me
more specifically, especially since it is adding a value
to my value list
.