Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

VB SQL - Adding sums to existing Sum queries

Avatar of andyb7901
andyb7901 asked on
Microsoft AccessSQL
9 Comments1 Solution329 ViewsLast Modified:
Hi,

I have a query which is filtering on quite a bit. I need it however to filter on a little more. I need it to filter now on the Sponsor field. I need to say once all filters have taken place, out of thos records which have a sponsor address of And@hotmail.com. I need to then take this figure away from my original figure

Sum(Abs(tbl_MIS_Records.[Account Type] In ("RegularAC","TopAC") And tbl_MIS_Records.Status In ("Approved","Not Approved","Mail Sent to requestor") And (tbl_MIS_Records.Location In ("Moscow","Istanbul") Or ([Location]="Johannesburg" And [LOB]="GCCG & Rates Derivatives")))) AS First_count,    -(minus)-     If any of these account have a tbl_MIS_Records.[Sponsor] in ("andy@hotmail.com").

Any ideas?
ASKER CERTIFIED SOLUTION
Avatar of GRayL
GRayLFlag of Canada image

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 9 Comments.
See Answers