Solved Query Average Computation Display in Form (1 Viewer)

Alejo

Member
Local time
Today, 03:17
Hi XPS35,
Hi All,

XPS35 has provided the solution to my previous query and really works. Single average value per Cust_
Q to F.JPG


I revised the query due to additional requirements by filtering the class"M" from ">#01/09/2022# And <#01/9/2023#"
Q.JPG


But the form display several values of Cust_A, Cust_B instead of single average value, and the Cust_C does not display.
F.JPG


May I request you to please check. Attached is the Database, you can apply the the correct formula in the attached file.
Thanks you.
 

Attachments

  • Database1.3.accdb
    420 KB · Views: 74

mike60smart

Registered User.
Local time
Today, 01:17
Hi XPS35,
Hi All,

XPS35 has provided the solution to my previous query and really works. Single average value per Cust_
View attachment 104180

I revised the query due to additional requirements by filtering the class"M" from ">#01/09/2022# And <#01/9/2023#"
View attachment 104181

But the form display several values of Cust_A, Cust_B instead of single average value, and the Cust_C does not display.
View attachment 104182

May I request you to please check. Attached is the Database, you can apply the the correct formula in the attached file.
Thanks you.
See attached
 

Attachments

  • Database1.3.accdb.zip
    21.5 KB · Views: 81

Gasman

Enthusiastic Amateur
Local time
Today, 01:17
That is beacuse you are grouping on those fields?
 

CJ_London

Super Moderator
Staff member
Local time
Today, 01:17
SQL requires dates to be in US format of mm/dd/yyyy or the sql standard of yyyy-mm-dd

So you need to use 09/01/2022 or 2022-09-01

easy enough to check in the immediate window

?month(#01/09/2022#)
1

or

?format(#01/09/2022#,"dd mmm yyyy")
09 Jan 2022
 

Alejo

Member
Local time
Today, 03:17
SQL requires dates to be in US format of mm/dd/yyyy or the sql standard of yyyy-mm-dd

So you need to use 09/01/2022 or 2022-09-01

easy enough to check in the immediate window

?month(#01/09/2022#)
1

or

?format(#01/09/2022#,"dd mmm yyyy")
09 Jan 2022
thanks Il do that in my actual file..
hope you can assist me with the attached file that i've sent
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 08:17
the fields: Product, Class_Type and D_Date must be "criteria" on your query:
see the revised qryAvgCustProdA on the attached.
 

Attachments

  • Database1.3.accdb
    544 KB · Views: 88

Users who are viewing this thread

Top Bottom