There was a post which was talked about a couple years back...ironically it still helped me in developing the following database in access. I too work for a police department and we did not have a means to track tow companies and the infamous "Rotational Tows". I want to be able to share that database with anyone who may need it.
I need help keeping track of wreckers being called and arriving on scene, but then law enforcement officer canceling on scene. This would then permit the tow company to be put "Back on Top" of the rotation list.
For instance...
.1. Tow One called/dispatched.
.2. Tow One arrives on Scene One.
.3. Tow Two is called from the rotation list and "Used" at Scene Two.
.4. Tow One is "Canceled".
.5. Tow One needs to be put on the top of the rotation list, before say, Tow Three is used.
At the moment we are able to just re-select Tow One from the bottom of the dropdown list, which makes it prone to user error. It would be nice to have the "Status" (Canceled, No Answer, Refused, Used) when selected as canceled, to have the Tow One placed back on top of the list...
Tables:
- Status (ID, Title, Type)
- WreckerLog (LogID, Title, Date, Requester, Location, Vehicle, Notes, Status, fkWreckerID)
- Wreckers (WreckerID, Title, WreckerName, PhoneNumber, AreaType)
Forms:
- frmLogNorth
- frmLogSouth
- frmMain
- subWreckerLogNorth
- subWreckerLogSouth
Queries:
qryAllRecsNorth:
SELECT qryLastAssign.WreckerName, qryLastAssign.LastDate, WreckerLog.fkWreckerID, qryLastAssign.AreaType
FROM WreckerLog LEFT JOIN qryLastAssign ON WreckerLog.fkWreckerID = qryLastAssign.fkWreckerID
WHERE (((qryLastAssign.AreaType)="Northern"))
ORDER BY qryLastAssign.LastDate, WreckerLog.fkWreckerID;
qryLastAssign:
SELECT Max(WreckerLog.Date) AS LastDate, WreckerLog.fkWreckerID, Wreckers.WreckerName, Wreckers.AreaType
FROM Wreckers INNER JOIN WreckerLog ON Wreckers.WreckerID = WreckerLog.fkWreckerID
GROUP BY WreckerLog.fkWreckerID, Wreckers.WreckerName, Wreckers.AreaType
ORDER BY Max(WreckerLog.Date), WreckerLog.fkWreckerID;
qryNorth:
SELECT WreckerLog.*, Wreckers.AreaType
FROM Wreckers INNER JOIN WreckerLog ON Wreckers.WreckerID = WreckerLog.fkWreckerID
WHERE (((Wreckers.AreaType)="Northern"));
qryRotationList:
SELECT WreckerLog.*, Wreckers.AreaType
FROM Wreckers INNER JOIN WreckerLog ON Wreckers.WreckerID = WreckerLog.fkWreckerID
WHERE (((Wreckers.AreaType)="Northern"));
Thank you in advance.
Database:
Database Schema Map:
I need help keeping track of wreckers being called and arriving on scene, but then law enforcement officer canceling on scene. This would then permit the tow company to be put "Back on Top" of the rotation list.
For instance...
.1. Tow One called/dispatched.
.2. Tow One arrives on Scene One.
.3. Tow Two is called from the rotation list and "Used" at Scene Two.
.4. Tow One is "Canceled".
.5. Tow One needs to be put on the top of the rotation list, before say, Tow Three is used.
At the moment we are able to just re-select Tow One from the bottom of the dropdown list, which makes it prone to user error. It would be nice to have the "Status" (Canceled, No Answer, Refused, Used) when selected as canceled, to have the Tow One placed back on top of the list...
Tables:
- Status (ID, Title, Type)
- WreckerLog (LogID, Title, Date, Requester, Location, Vehicle, Notes, Status, fkWreckerID)
- Wreckers (WreckerID, Title, WreckerName, PhoneNumber, AreaType)
Forms:
- frmLogNorth
- frmLogSouth
- frmMain
- subWreckerLogNorth
- subWreckerLogSouth
Queries:
qryAllRecsNorth:
SELECT qryLastAssign.WreckerName, qryLastAssign.LastDate, WreckerLog.fkWreckerID, qryLastAssign.AreaType
FROM WreckerLog LEFT JOIN qryLastAssign ON WreckerLog.fkWreckerID = qryLastAssign.fkWreckerID
WHERE (((qryLastAssign.AreaType)="Northern"))
ORDER BY qryLastAssign.LastDate, WreckerLog.fkWreckerID;
qryLastAssign:
SELECT Max(WreckerLog.Date) AS LastDate, WreckerLog.fkWreckerID, Wreckers.WreckerName, Wreckers.AreaType
FROM Wreckers INNER JOIN WreckerLog ON Wreckers.WreckerID = WreckerLog.fkWreckerID
GROUP BY WreckerLog.fkWreckerID, Wreckers.WreckerName, Wreckers.AreaType
ORDER BY Max(WreckerLog.Date), WreckerLog.fkWreckerID;
qryNorth:
SELECT WreckerLog.*, Wreckers.AreaType
FROM Wreckers INNER JOIN WreckerLog ON Wreckers.WreckerID = WreckerLog.fkWreckerID
WHERE (((Wreckers.AreaType)="Northern"));
qryRotationList:
SELECT WreckerLog.*, Wreckers.AreaType
FROM Wreckers INNER JOIN WreckerLog ON Wreckers.WreckerID = WreckerLog.fkWreckerID
WHERE (((Wreckers.AreaType)="Northern"));
Thank you in advance.
Database:
Database Schema Map: