A
Attos
Hello all,
I have a form (frmEnvios) with a subform in it (sbfEnvio01).
My suboform contains three comboboxes and one textbox.
The three comboboxes are cascaded.
The first combo contains a list of customers (cbxCust).
The second contains a list purchase orders (cbxPo).
The third contains a list of part numbers (cbxNumpart).
Second and third combos are pulling their values from queries using
parameters taken from the value of the previous combo, respectively.
The subform is shown on datasheet format and is bound to a table
(tblEnvdetalle).
My problem is: when I add more than one record in the subform, the
subsecuent second and third combos, start erasing their contents. They do
that in records different than the active one. I have observed that is due
to the requery method I use on the combobox control, but I cannot remove it
because that is the only way I know of doing what I want.
Is there a way to avoid that? That is, I want the requery to be done upon a
combobox but only on the active record, and not to the whole set of rows
because that refreshes the combobox in all the records, not just on the
active one.
On the other hand, if there is no way of performing a requery on just the
current record, can I then store the values of the combobox for all the other
records then perform the requery, and then recover those values to repopulate
the subform?
Any help would be greatly appreciated.
Attos
I have a form (frmEnvios) with a subform in it (sbfEnvio01).
My suboform contains three comboboxes and one textbox.
The three comboboxes are cascaded.
The first combo contains a list of customers (cbxCust).
The second contains a list purchase orders (cbxPo).
The third contains a list of part numbers (cbxNumpart).
Second and third combos are pulling their values from queries using
parameters taken from the value of the previous combo, respectively.
The subform is shown on datasheet format and is bound to a table
(tblEnvdetalle).
My problem is: when I add more than one record in the subform, the
subsecuent second and third combos, start erasing their contents. They do
that in records different than the active one. I have observed that is due
to the requery method I use on the combobox control, but I cannot remove it
because that is the only way I know of doing what I want.
Is there a way to avoid that? That is, I want the requery to be done upon a
combobox but only on the active record, and not to the whole set of rows
because that refreshes the combobox in all the records, not just on the
active one.
On the other hand, if there is no way of performing a requery on just the
current record, can I then store the values of the combobox for all the other
records then perform the requery, and then recover those values to repopulate
the subform?
Any help would be greatly appreciated.
Attos