E
EricG
To start, I'm terrible at Access, but good at all forms of VBA. I have been
trying to create a query for the last few days without success, and would
appreciate some advice.
I have two tables. The first, 'tbl_DART' is a list of all users who are
authorized to add records to the database. Each user has only one (unique)
record in the database. This table is keyed on "EmpID". For simplification,
the table has "EmpID", "LastName" and "FirstName" as fields.
The second table, 'tbl_Status' contains one record per employee which tracks
that employee's progress towards an objective. If an employee has not yet
entered a record, it does not exist in 'tbl_Status' (i.e. there is not a
default, blank record for each employee). Again for simplication, this table
has "ID", "Step1Complete", "Step1Date", "Step2Complete", "Step2Date",
"Step3Complete", "Step3Date" as fields and is linked one-to-one with
'tbl_DART' via "ID" = "EmpID". "Step1Complete", etc are booleans (check
boxes on a form). "Step1Date", etc are the dates that the employee marked
that step complete.
I am trying to create a new table to help track overall progress for the
entire list of users. I want to be able to extract a timeline of progress
for:
1. % of total authorized users who have created their record in 'tbl_Status'
2. % of records in 'tbl_Status' for which Step 1 is complete
3. % of records in 'tbl_Status' for which Step 2 is complete
etc.
The new table (call it 'tbl_Metrics') will look something like this:
Date %Records Created %Step 1 Complete %Step 2 Complete
7/1/2009 2.0% 0.0%
0.0%
7/3/2009 15.3% 8.1%
5.2%
7/5/2009 27.3% 18.9%
11.1%
I'm trying to gather this data for every unique date in 'tbl_Status'. The
percentages need to be cumulative as time goes by. Some dates will have only
one entry, others could have many.
I'm baffled and could use some suggestions. I'm perfectly happy to
implement as a query in Access, or as some VBA, whichever is easier.
TIA,
Eric
trying to create a query for the last few days without success, and would
appreciate some advice.
I have two tables. The first, 'tbl_DART' is a list of all users who are
authorized to add records to the database. Each user has only one (unique)
record in the database. This table is keyed on "EmpID". For simplification,
the table has "EmpID", "LastName" and "FirstName" as fields.
The second table, 'tbl_Status' contains one record per employee which tracks
that employee's progress towards an objective. If an employee has not yet
entered a record, it does not exist in 'tbl_Status' (i.e. there is not a
default, blank record for each employee). Again for simplication, this table
has "ID", "Step1Complete", "Step1Date", "Step2Complete", "Step2Date",
"Step3Complete", "Step3Date" as fields and is linked one-to-one with
'tbl_DART' via "ID" = "EmpID". "Step1Complete", etc are booleans (check
boxes on a form). "Step1Date", etc are the dates that the employee marked
that step complete.
I am trying to create a new table to help track overall progress for the
entire list of users. I want to be able to extract a timeline of progress
for:
1. % of total authorized users who have created their record in 'tbl_Status'
2. % of records in 'tbl_Status' for which Step 1 is complete
3. % of records in 'tbl_Status' for which Step 2 is complete
etc.
The new table (call it 'tbl_Metrics') will look something like this:
Date %Records Created %Step 1 Complete %Step 2 Complete
7/1/2009 2.0% 0.0%
0.0%
7/3/2009 15.3% 8.1%
5.2%
7/5/2009 27.3% 18.9%
11.1%
I'm trying to gather this data for every unique date in 'tbl_Status'. The
percentages need to be cumulative as time goes by. Some dates will have only
one entry, others could have many.
I'm baffled and could use some suggestions. I'm perfectly happy to
implement as a query in Access, or as some VBA, whichever is easier.
TIA,
Eric