Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fill field in form from two other fields matching

Status
Not open for further replies.

Kirk Thomas

Technical User
Jul 25, 2017
7
US
I have a table called "Machines", in that table is a field called "Description" which tells what the machines function is.
I also have a form, that the technician fills out daily at the end of the shift. In that form the source is a table called "Call Log". I would like to add the description field to the call log form/table and have it populated from the "Machines" table where the "Production line/Area" field and "OP Number" match. "Production line/Area" and "OP Number" are in both tables, but the machine description is only in the "Machines" table.
I am quite a novice at Access, and would appreciate any guidance from the gurus.
Thanks for your time and patience.
 
Hi Kirk and welcome to Tek-Tips.

The machine description should be stored in only one table. This is a basic database rule. One of the cases for storing information in more than one table is if the description will change over time and you want to maintain the old value for historical reasons. This is more prevalent when referring to prices of sales items.

You would store only the primary key value from the machine table and the description can be displayed by using a query with the machine table or a combo box.

Please come back with more questions if this is not clear.

Duane
Minnesota
Hook'D on Access
MS Access MVP 2001-2016
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top