DBLookUp

B

brmk

I have a combo box and a text field. The text field has a DBLookUp as the control source. The lookup uses the value of the combo box (combo box = customer, DBlookup is for address). It works the first time that you select a customer from the combo box. But if I change the value in the combo box to a different customer, the DBLookup does not execute again.
 
H

Howard Brody

Put the LookUp in the AfterUpdate event of the ComboBox

----- brmk wrote: ----

I have a combo box and a text field. The text field has a DBLookUp as the control source. The lookup uses the value of the combo box (combo box = customer, DBlookup is for address). It works the first time that you select a customer from the combo box. But if I change the value in the combo box to a different customer, the DBLookup does not execute again.
 
G

George Lob

Use an After Update event procedure on the combo box that requeries the text
field.

Me.txtAddress.Requery


brmk said:
I have a combo box and a text field. The text field has a DBLookUp as the
control source. The lookup uses the value of the combo box (combo box =
customer, DBlookup is for address). It works the first time that you select
a customer from the combo box. But if I change the value in the combo box
to a different customer, the DBLookup does not execute again.
 

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