I am running a query with one expression that calculates standard deviation. I want to calculate standard error as well so I created an expression within the same query to do so. However, I now get asked to enter a parameter value for the standard deviation and the CountofAcctNum. When I just hit "enter" twice for these two without entering any data, I get the correct answer. How can I do this without having the "Enter Parameter Value" come up when I don't want it to?
Thanks!
This is my query:
SELECT HospCodes.[Hospital Name], Count(Records.AcctNum) AS CountOfAcctNum, StDev((([Triage]-[Arrival])*24*60)) AS StDevArr2Triage, Min(Records.Date) AS MinOfDate, Max(Records.Date) AS MaxOfDate, 2*[StDevArr2Triage]/([CountofAcctNum]^0.5) AS 2SE
FROM Records LEFT JOIN HospCodes ON Records.HospCode = HospCodes.HospCode
WHERE (((Records.Date) Between [Forms]![Dates]![BegDate] And [Forms]![Dates]![EndDate]) AND ((Records.Arrival) Is Not Null) AND ((Records.Triage) Is Not Null))
GROUP BY HospCodes.[Hospital Name], 2*[StDevArr2Triage]/([CountofAcctNum]^0.5)
HAVING (((StDev((([Triage]-[Arrival])*24*60)))>=-5))
ORDER BY StDev((([Triage]-[Arrival])*24*60));
Thanks!
This is my query:
SELECT HospCodes.[Hospital Name], Count(Records.AcctNum) AS CountOfAcctNum, StDev((([Triage]-[Arrival])*24*60)) AS StDevArr2Triage, Min(Records.Date) AS MinOfDate, Max(Records.Date) AS MaxOfDate, 2*[StDevArr2Triage]/([CountofAcctNum]^0.5) AS 2SE
FROM Records LEFT JOIN HospCodes ON Records.HospCode = HospCodes.HospCode
WHERE (((Records.Date) Between [Forms]![Dates]![BegDate] And [Forms]![Dates]![EndDate]) AND ((Records.Arrival) Is Not Null) AND ((Records.Triage) Is Not Null))
GROUP BY HospCodes.[Hospital Name], 2*[StDevArr2Triage]/([CountofAcctNum]^0.5)
HAVING (((StDev((([Triage]-[Arrival])*24*60)))>=-5))
ORDER BY StDev((([Triage]-[Arrival])*24*60));