I have a public function (Percentile) in the modules, when I call it in Query, Access gives me "Undefined function'Percentile' in expression". Thanks in advance.
sorry, you mean this one
ArriveTime Responder_Type Incidentid
2006-01-03 7:02:22 PM BLS 416
2006-01-05 8:35:13 AM BLS 21
2006-01-07 9:45:29 AM ALS 24
2006-01-07 6:09:59 AM BLS 26
I made it by hand which the one I want.
Only want to group the Response.Incidentid, and return Response.Responder_Type as well.
Here is the CODE:(IT DOESNOT WROK, if I group Response.Responder_Type as well, the result is not right)
SELECT Min(Incident_Event.Date_Time) AS ArriveTime, Response.Incidentid, Response.Responder_Type
FROM...
HI PHV,
Thank you very much. The result doesnot look like what I want and it seems the qry never stop.
The part of result from that code:
ArriveTime Responder_Type Incidentid
2006-01-03 7:02:22 PM BLS 416
2006-01-03 7:17:42 PM ALS 416
2006-01-05 8:35:13 AM BLS 21
2006-01-07 9:45:29 AM ALS 24...
If I add it to my group by, the result will be:
ArriveTime Responder_Type Incidentid
2006-01-23 7:36:00 AM AS 1
2006-01-23 7:37:10 AM BS 1
2006-01-03 2:25:19 PM BS 2
2006-01-03 1:16:45 PM BS 7
2006-01-03 1:17:04 PM AS 7
2006-01-03 1:14:00 PM FR 7
but the result what I want should be...
By using Group By, I only know how to do for two columns Such as:
SELECT Min(Incident_Event.Date_Time) AS ArriveTime, Response.Incidentid
FROM Response INNER JOIN Incident_Event ON Response.ResponderId = Incident_Event.ResponderId
WHERE (((Incident_Event.EventEnum)=100005) AND...
Did you mean that I need to change the format of that column? Since I got the database from a system, I cannot set the format. Sorry, I am a really new for Access. I am really apreciate your help.
It works. Thank you very much, George
I got another question:
I have a column with this kind of data: 2006-01-23 2:16:11 PM
but I only want the date which is 2006-01-23.
How could I do it? Thanks again for your help.
Hi every one,
I am a Access beginer, I have some questions to ask. Here is my question: I want to compare the id first, if the ids are the same pick the row with the earliest time, if id is unique then store. For example:
id Arrive Time
417 2006-01-06 7:50:56 PM
417 2006-01-06 8:15:17 PM
64...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.