Hello,
I am very new to access and trying to figure out how to create a % on time deliveries query. I have successfully created a query that shows me total deliveries by month. I based it on another query that have numbers converted to dates due to our ODBC using yyyymmdd as number records. I just need to add a column on the right of the total deliveries in January how many were on time. Here is an image of what I have thus far.
Query where I have converted dates as well as other delivery info that I based my totals query on:
qryDeliveryinfo image
qryDeliveryinfo design view
Query that I want to add the column for on time deliveries:
qryTotalDeliveriesMonthly image
qryTotalDeliveriesMonthly design view
I have a column in my query that has fields such as scheduled del date[SCADATECONV] and a field that has scheduled del time[SCATIME]. I also have fields that show actual del date[ACADATECONV] and actual del time[ACATIME]. The exact times are numerical values. IE 150000(3PM). To throw more complexity to this we consider "on time" as 30 minutes within the scheduled del time. Here is the code for my initial query(based on another query I created with all the info I needed):
SELECT Format([ACADATECONV],"mmmm yyyy") AS MonthYear, Count([qry_% on time].STOPID) AS CountOfSTOPID
FROM [qry_% on time]
GROUP BY Format([ACADATECONV],"mmmm yyyy"), Format([ACADATECONV],"mmmm yyyy");
Your help is sincerely appreciated. Let me know if you require any other info for your recommendation.
Jeremy