Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 11th, 2007, 06:48 AM
Registered User
 
Join Date: Sep 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help with daily log database

Hi, everyone.

I need to make an Access database application that can track hours spent by each employee per day in one of 8 different tasks. How do I approach this?

Any help is appreciated. Thanks in advance.

Regards,


Hailey
www.msaccessrepair.com - Access Recovery
 
Old September 11th, 2007, 08:05 AM
Authorized User
 
Join Date: Jun 2003
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default


Hailey

Hi

fairly big subject to cover on a single post you might want to try the following page on this web site


http://www.mvps.org/access/datetime/

Man Friday

 
Old September 11th, 2007, 08:32 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Basically you will want to create the necessary tables first, which will include:

tblEmployee for employee data.
EmployeeID - PK
FName
LName
...

tblTask for task data.
TaskID - PK
TaskName
...

tblEmp_Task as a junction table between employees and their tasks.

tblEmp_Task
Emp_TaskID
EmployeeID - FK on tblEmployee
TaskID - FK on tblTask
Date
Hours

This basic structure will store all the data in your current requirements. You must enter all your employees and task names before you can start using the junction table. Then you can assign the hours to each employee. For example, data in the jnction table would look like:

Emp_TaskID EmpID TaskID Date Hours
1 1 1 09/11/2007 3

where 1 in EmpID represents your first employee record, 1 in taskid represents your first taskname, etc.

This structure will also give you what you need to create workable queries.

Does that help so far?



mmcdonal





Similar Threads
Thread Thread Starter Forum Replies Last Post
Log in function link to database zhugeliang ASP.NET 2.0 Basics 0 July 29th, 2006 11:06 AM
Log in xml database Apocolypse2005 XML 2 January 6th, 2006 01:57 PM
Log changes to a database rain_uk Dreamweaver (all versions) 5 May 14th, 2005 02:13 AM
AppException Class -Log Error to Event Log bekim BOOK: ASP.NET Website Programming Problem-Design-Solution 7 December 7th, 2004 01:01 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.