Potatohead123
Technical User
Hi all,
I'm a beginner. In MS Access, I want to turn a textfield into a different color when a numerical value in the textfield is greater than the average (this average is obtained using a query - from tables).
The query is:
SELECT Round(Avg(nz([tbl_x]![fld_x_Successful_Today],0)+nz([tbl_x]![fld_x_Successful_Yesterday],0)),0) AS Avg_Success,
FROM tbl_x
WHERE (((Format([fld_date],"ddd"))=[Please enter the day <ddd>]));
I know I need to use the expression in "conditional formatting", but I do not know how to write it.
Notice that in the query, it takes the day of week (ie. Mon)that the user enters and evaluate the average. (ie. the average successes of all mondays).
In Access, the day of the week should be figured out automatically.. somehow.. so that the user wouldn't have to enter day of week.
Can someone lead me the way... I am so confused. What should I do first? and how? Please let me know if I am not clear enough.. and I will elaborate.
I'm a beginner. In MS Access, I want to turn a textfield into a different color when a numerical value in the textfield is greater than the average (this average is obtained using a query - from tables).
The query is:
SELECT Round(Avg(nz([tbl_x]![fld_x_Successful_Today],0)+nz([tbl_x]![fld_x_Successful_Yesterday],0)),0) AS Avg_Success,
FROM tbl_x
WHERE (((Format([fld_date],"ddd"))=[Please enter the day <ddd>]));
I know I need to use the expression in "conditional formatting", but I do not know how to write it.
Notice that in the query, it takes the day of week (ie. Mon)that the user enters and evaluate the average. (ie. the average successes of all mondays).
In Access, the day of the week should be figured out automatically.. somehow.. so that the user wouldn't have to enter day of week.
Can someone lead me the way... I am so confused. What should I do first? and how? Please let me know if I am not clear enough.. and I will elaborate.