Question : Date Range Prompt Once for 2 Queries

Scenario:

Database tracks downtime events for all network print devices. Several reports are provided on a monthly basis summarizing specific information.

As a result, I have 2 different queries that are linked for the purpose of providing 2 different types of information on 1 report:

• Total number of devices in use during the month (query# 1)
• Total number of downtime events for each of the types of devices during the month (query #2)

The table that the 1st query is based upon has a data field [Retire Date] that is utilized to note when a print device has been taken out of service.

When calculating the total number of print devices in use during a specified month or time frame, the number can vary depending on when a print device has been taken out of service.

For instance, there may be 20 B&W printers during the month of May but only 19 in June. When the report is run for the respective months, the device count should reflect these differences.

Date prompt range:

>=[Beginning Date mm/dd/yy] And <[Ending Date mm/dd/yy]+1

On data field [IssueDateTime] on DowntimeTotal query

Can this same date prompt be applied to the Retire Date field (including ‘OR is Null’) for the DeviceCount query (query #1) so that the user is prompted to enter the date range once?
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
Query #1

SELECT ([Device] & " " & [Color]) AS DeviceType, Count([DeviceType]) AS DeviceCount, [LAN Printers].RetireDate
FROM [LAN Printers]
GROUP BY ([Device] & " " & [Color]), [LAN Printers].Device, [LAN Printers].Color, [LAN Printers].RetireDate
HAVING ((([LAN Printers].Device)<>"FAX" And ([LAN Printers].Device)<>"Scanner" And ([LAN Printers].Device)<>"None"));




Query #2

SELECT ([Device] & " " & [Color]) AS DeviceType, Count(([DeviceType])) AS IssueCount, Sum(qryDowntimeTotal.DowntimeHours) AS SumOfDowntimeHours
FROM [LAN Printers] INNER JOIN qryDowntimeTotal ON [LAN Printers].[Serial No] = qryDowntimeTotal.[Serial No]
GROUP BY ([Device] & " " & [Color]);

DowntimeTotal Query:

PARAMETERS [Beginning Date mm/dd/yy] DateTime, [Ending Date mm/dd/yy] DateTime;
SELECT [Site Information].[Site Name], [LAN Printers].Mfg, Downtime.HeatTicketNo, [LAN Printers].RetireDate, [LAN Printers].Model, [LAN Printers].Printer, Downtime.[Serial No], Downtime.IssueDateTime, Downtime.Issue, Downtime.ResolveDateTime, Downtime.Resolution, Downtime.[Resolved by], WorkingHrs([IssueDateTime],[ResolveDateTime],#12/30/1899 8:0:0#,#12/30/1899 17:0:0#,23456) AS DowntimeHours
FROM [Site Information] INNER JOIN ([LAN Printers] INNER JOIN Downtime ON [LAN Printers].[Serial No] = Downtime.[Serial No]) ON [Site Information].[Site Name] = [LAN Printers].Site
WHERE ((([LAN Printers].Mfg)<>"None") AND (([LAN Printers].RetireDate)>=[IssueDateTime] Or ([LAN Printers].RetireDate) Is Null) AND ((Downtime.IssueDateTime)>=[Beginning Date mm/dd/yy] And (Downtime.IssueDateTime)<[Ending Date mm/dd/yy]+1) AND ((Downtime.ResolveDateTime) Is Not Null));

Answer : Date Range Prompt Once for 2 Queries

From http://h18004.www1.hp.com/products/quickspecs/13249_na/13249_na.html

Quad-Core Intel® Xeon® E5500 processor series, up to 2.53GHz
Dual-Core Intel® Xeon® E5500 processor series, up to 1.86 GHz
Random Solutions  
 
programming4us programming4us