Populate Fields

  • Thread starter Thread starter Nick Jax
  • Start date Start date
N

Nick Jax

Hello,

On my Access form have 2 fields. Code and Code Description. The code field
does a look up on a table and allows the user to select the code they want.
The table contains the code and code description fields only.

What I'd like to be able to do, is if a user selects code A1 (for example)
the code description field automatically populates with the code
description. How can I achieve this?

Thanks all!
 
Is the control for the code field a combo box? If so, you can change the row
source to include the description in an additional column as long as you can
construct the query properly. Then, you could use the combo box's
AfterUpdate event to set the second field's value:

Me.CodeDescription = Me.ComboCode.Columns(1)
 

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

Back
Top