Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / March 2007

Tip: Looking for answers? Try searching our database.

Populate Fields

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nick Jax - 20 Mar 2007 17:02 GMT
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!
kingston - 20 Mar 2007 18:00 GMT
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)

>Hello,
>
[quoted text clipped - 7 lines]
>
>Thanks all!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.