I
igorin
Hello,
I have a DB where I store all the data for the use of equipment.
I have the following values:
Date Area Equipment Quantity Total Hours Comments
03/27/09 Area 1 Excavator 2 26 asgftfe
03/27/09 Area 1 Excavator 1 7 jasjgs
03/27/09 Area 2 Excavator 1 12 jkla
03/27/09 Area 1 Crane 1 8 hhdkh
03/27/09 Area 3 Compactor 3 21 hch
03/28/09 Area 3 Crane 2 14 lkhjd
03/28/09 Area 3 Crane 1 3 gktut
03/28/09 Area 2 Excavator 3 27 jjweq
03/28/09 Area 1 Grader 2 11 tuitb
I need a form where I can type in the date into a text box and have all the
sums for the unique values for that date appear (taking into consideration
for "unique" the fields: date, area, equipment).
This means that for 03/27/09 the number of excavators to show for area 1
should be 3, with total hours 33.
So that if I type in 03/27/09, the form should display this:
Date Area Equipment Quantity Total Hours
03/27/09 Area 1 Excavator 3 33
03/27/09 Area 2 Excavator 1 12
03/27/09 Area 1 Crane 1 8
03/27/09 Area 3 Compactor 3 21
And if I type in 03/28/09, then the form should display this:
Date Area Equipment Quantity Total Hours
03/28/09 Area 3 Crane 3 17
03/28/09 Area 2 Excavator 3 27
03/28/09 Area 1 Grader 2 11
Please, help!
I have a DB where I store all the data for the use of equipment.
I have the following values:
Date Area Equipment Quantity Total Hours Comments
03/27/09 Area 1 Excavator 2 26 asgftfe
03/27/09 Area 1 Excavator 1 7 jasjgs
03/27/09 Area 2 Excavator 1 12 jkla
03/27/09 Area 1 Crane 1 8 hhdkh
03/27/09 Area 3 Compactor 3 21 hch
03/28/09 Area 3 Crane 2 14 lkhjd
03/28/09 Area 3 Crane 1 3 gktut
03/28/09 Area 2 Excavator 3 27 jjweq
03/28/09 Area 1 Grader 2 11 tuitb
I need a form where I can type in the date into a text box and have all the
sums for the unique values for that date appear (taking into consideration
for "unique" the fields: date, area, equipment).
This means that for 03/27/09 the number of excavators to show for area 1
should be 3, with total hours 33.
So that if I type in 03/27/09, the form should display this:
Date Area Equipment Quantity Total Hours
03/27/09 Area 1 Excavator 3 33
03/27/09 Area 2 Excavator 1 12
03/27/09 Area 1 Crane 1 8
03/27/09 Area 3 Compactor 3 21
And if I type in 03/28/09, then the form should display this:
Date Area Equipment Quantity Total Hours
03/28/09 Area 3 Crane 3 17
03/28/09 Area 2 Excavator 3 27
03/28/09 Area 1 Grader 2 11
Please, help!