Text transfer and selection

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top