R
Rudi
Hi. A small problem here..
I have a form for enetring customer data. And on this form is a
ComboBox for selecting the ZIP code. Under the cboZipCode there is a
txtState that I use only to displays the name of the selected ZIP
code's state. If the customerd code is not allready in the system, the
user can click a hyperlinked label next to the cboZipCode, a new form
for entering ZIP codes opens and the user enters the new ZIP code and
the name of the State. Now here is where my problem starts. When the
user closes the ZIPCode-entering-form, I want the newly entered ZIP
code to be allready selected in the cboZipCode (on the Customer form).
I'm using the
Forms![form1]![txtNumber] = Forms![form2]![cboNumber]
piece of code to transfer the text to the cboZipCode. And it works OK.
The problem is that the ZIP code is only displayed in the cbo, but not
selected. And the txtState, under the cboZipCode, doesn't display the
name of the state.
Can anyone help me with this?
I have a form for enetring customer data. And on this form is a
ComboBox for selecting the ZIP code. Under the cboZipCode there is a
txtState that I use only to displays the name of the selected ZIP
code's state. If the customerd code is not allready in the system, the
user can click a hyperlinked label next to the cboZipCode, a new form
for entering ZIP codes opens and the user enters the new ZIP code and
the name of the State. Now here is where my problem starts. When the
user closes the ZIPCode-entering-form, I want the newly entered ZIP
code to be allready selected in the cboZipCode (on the Customer form).
I'm using the
Forms![form1]![txtNumber] = Forms![form2]![cboNumber]
piece of code to transfer the text to the cboZipCode. And it works OK.
The problem is that the ZIP code is only displayed in the cbo, but not
selected. And the txtState, under the cboZipCode, doesn't display the
name of the state.
Can anyone help me with this?