Hi
I have a DB which pull through the company ERP system . Later I made a query (so call Qry1)which simplyfy all necessary fields which I need .
One of the field in this query is Customer. There are two major group of the Customer call Internal & External. I do not want to make a query to identify what customer is External or Internal customer as it can be diffrentiate easily with A** & B** & C** is internal whereas others in External.
Also another field of this Qry1 is [Amount] which indicate the sales amount.
Question :
How can I make a report to identify the sales amount of Internal customer only? which means sales by A**,B** & C**.
I had tried this in the report (in header ?)but it don't work.
=Nz((DSum("[Amount]","[Qry1]","[Customer]= 'A**'")))+Nz((DSum("[Amount]","[Qry1]","[Customer]= 'B**'")))+Nz((DSum("[Amount]","[Qry1]","[Customer]= 'C**'")))
Please commend.
Thanks
jiajian
I have a DB which pull through the company ERP system . Later I made a query (so call Qry1)which simplyfy all necessary fields which I need .
One of the field in this query is Customer. There are two major group of the Customer call Internal & External. I do not want to make a query to identify what customer is External or Internal customer as it can be diffrentiate easily with A** & B** & C** is internal whereas others in External.
Also another field of this Qry1 is [Amount] which indicate the sales amount.
Question :
How can I make a report to identify the sales amount of Internal customer only? which means sales by A**,B** & C**.
I had tried this in the report (in header ?)but it don't work.
=Nz((DSum("[Amount]","[Qry1]","[Customer]= 'A**'")))+Nz((DSum("[Amount]","[Qry1]","[Customer]= 'B**'")))+Nz((DSum("[Amount]","[Qry1]","[Customer]= 'C**'")))
Please commend.
Thanks
jiajian