A
Amit
Hi,
I would like to carry over the value of a combobox from
the current record to the next/new record and be the
default value.
In the AfterUpdate event of the combobox, I have the code:
Me.[cbobox].DefaultValue = Me.[cbobox]
Also, in the close event of the form, I have the code:
Me.[cbobox].DefaultValue = ""
This is working fine when I open the form directly. But,
when the form is opened through another form using a
button, and the [cbobox] value is passed to it from the
original form, then this doesn't work. Is it because the
AfterUpdate for the cbobox is not firing in the instance
when the form is opened through another form? Where would
I place the code to make it work in both instances?
Thanks!
-Amit
I would like to carry over the value of a combobox from
the current record to the next/new record and be the
default value.
In the AfterUpdate event of the combobox, I have the code:
Me.[cbobox].DefaultValue = Me.[cbobox]
Also, in the close event of the form, I have the code:
Me.[cbobox].DefaultValue = ""
This is working fine when I open the form directly. But,
when the form is opened through another form using a
button, and the [cbobox] value is passed to it from the
original form, then this doesn't work. Is it because the
AfterUpdate for the cbobox is not firing in the instance
when the form is opened through another form? Where would
I place the code to make it work in both instances?
Thanks!
-Amit