continiuse form with text Box - Data apears in every one not just one

S

Simon

I have a Continiouse from that is based on a query

I have added a new text box and a button which has the following code

DLookup("[TradePRiceExVAT]", "tblProduct", "[ProductID]=" &
Me.ProductID)

However when i click on it the value apear on every recored on the
continiouse form not just the recored i want

What causes this?
 
F

fredg

I have a Continiouse from that is based on a query

I have added a new text box and a button which has the following code

DLookup("[TradePRiceExVAT]", "tblProduct", "[ProductID]=" &
Me.ProductID)

However when i click on it the value apear on every recored on the
continiouse form not just the recored i want

What causes this?

That's correct. The control is unbound so how would Access know which
record the value belonged to. An unbound control placed on a
continuous form, is just one control, repeated for each record.
Place the control in the Form's header
 

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