Solved

Related Tables & updating them

Posted on 2013-01-16
2
210 Views
Last Modified: 2013-01-16
Dear Experts

In Access 2010 I’m building an HR database & I need to produce an HR log to record such things as “annual review” – this table will have the following columns:

HRLogID | EmployeeID | Dated | Type | Summary | Notes

I want to store the log info in a separate table to the main table (“Main”) that stores a person’s record. The link between the two tables is EmployeeID.

I want the data to show & be able to be updated from a form called “Employee” which displays all the data on a person. The data source for this form is the table “Main”

Can anybody explain how I go about doing this – for some reason I have always had a mind blank when it comes to joining up tables in this manner, so a really basic step by step  answer or example would be most appreciated.

Many thanks
0
Comment
Question by:correlate
2 Comments
 
LVL 39

Accepted Solution

by:
als315 earned 500 total points
ID: 38781753
1. Create table with desired fields (HRLogID - autonumber, EmployeeID long integer, if in table Main it is autonumber).
2. Add table to DB Relations (One-to many from Main to this table)
3. Create subform on main form with employees details. Master field - EmployeeID from main form, Child - EmployeeID from this subform. You can also set default value for Dated field to =Date() or =Now() if you like to fill it with current date (date/time)
0
 

Author Closing Comment

by:correlate
ID: 38781799
Perfect, thank you - at last it all makes sense
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question