ViLco
2011-09-26 17:06:06 UTC
This is the first time a combobox acts like this, maybe because it's the
only one linked to a table with a numeric field as the rowsource and a
numeric controlsource... It shows 2 columns from a linked table, NCODICE
(numeric autoincr) and DESCRIZ (the description). The boundcolumn is the
first (NCODICE), controlsource is a field in the main table where I
store the value of NCODICE from the linked table.
When I select a row having a certain value, the value which gets stored
in the main table is not NCODICE, it's the recno of the linked table. I
checked the value of both the field and the combobox.value and they all
show the value of recno() of the linked table instead of the value of
its NCODICE field.
Why? In my other comboboxes the combobox.value and the value stored in
the main table is the value of the field in the linked table.
Boundcolumn is set to 1, the rowsource is "CLIENTI,NCODICE,DESCRIZ", it
all looks allright but I can't allow it to work with recno instead of
the real value: at the first record deletion I would end up storing and
showing the wrong information, or no description...
This is puzzling me, anyone has any advice?
only one linked to a table with a numeric field as the rowsource and a
numeric controlsource... It shows 2 columns from a linked table, NCODICE
(numeric autoincr) and DESCRIZ (the description). The boundcolumn is the
first (NCODICE), controlsource is a field in the main table where I
store the value of NCODICE from the linked table.
When I select a row having a certain value, the value which gets stored
in the main table is not NCODICE, it's the recno of the linked table. I
checked the value of both the field and the combobox.value and they all
show the value of recno() of the linked table instead of the value of
its NCODICE field.
Why? In my other comboboxes the combobox.value and the value stored in
the main table is the value of the field in the linked table.
Boundcolumn is set to 1, the rowsource is "CLIENTI,NCODICE,DESCRIZ", it
all looks allright but I can't allow it to work with recno instead of
the real value: at the first record deletion I would end up storing and
showing the wrong information, or no description...
This is puzzling me, anyone has any advice?
--
Vilco
And the Family Stone
Anche un maiale puo' arrampicarsi su un albero quando e' adulato
Vilco
And the Family Stone
Anche un maiale puo' arrampicarsi su un albero quando e' adulato