Thanks Dale, Not exactly what I need yet. Here is what i wrote
SELECT dailyproduction_table.Employee,
dailyproduction_table.Production_Date, loadsize_table.ID,
loadsize_table.load_size
FROM dailyproduction_table INNER JOIN loadsize_table ON
dailyproduction_table.ID=loadsize_table.Code
ORDER BY dailyproduction_table.Employee,
dailyproduction_table.Production_Date DESC;
The result I'm looking for is more like..
Production_date, Employee, Load_size , Load_size , Load_size, Load_size ...
for how ever many loads this particular employee took on this particular day.
Easily I can show a total load_size for all loads and average load size but
I am looking to print a report that list each load size for a particular day
that each employee took. The report would have a column of drivers and a row
of loads for each driver for each day.
and thanks I forgot about the date thing, I did change it. thank you very
much for your help,
:
Since you didn't tell us the names of your tables, I'll take a stab
Table1: contains ID, [Load_size],
Code:
Table2: contains ID, [Date], [Employee] By the way. Date is an Access
reserved word and should not be used as a field name. I recommend changing
it to something like [Delivery_Date] or [Load_Date] or something else that
accurately describes the meaning of the date.
Select Table2.Employee, Table2.[Load_Date], Table1.ID as Load_ID,
Table1.Load_size
FROM Table2 INNER JOIN Table1 on Table2.ID = Table1.Code.
ORDER ON Table2.Employee ASC, Table2.[Local_Date] DESC
I think this query will give you a list of employees and the loads they
carried, sorted by Employee and then descending by Load_Date. If you want a
particular date, you will have to enter a WHERE clause to restrict the date.
HTH
Dale
I have a table with three fields..
ID is the Key
load_size
code
another table has fields ID, date, employee,
these are populated with a form that has an embedded form for the first
table.
the Id on the second form is a Key that is joined with code on the first
form. therfore I have a table with a date and employee and Id that matches
a
table with several loads for that employee on that date. I want to print
a
report that shows each load that employee took on a give date. help
anyone
..
[/QUOTE][/QUOTE][/QUOTE]