2 querys in 1 report?

A

Ady

Hi There

I am creating a report. In this report I need to total the number of e-mail
marketing allowed=true, and the total for e-mail marketing allowed=false.

At the moment I am creating a simple query for e-mail marketing allowed=true
and doing a report from this. Then creating another query for e-mail
marketing allowed=false. Then doing a report from this.

What I would really like to do is show the number of:
e-mail marketing allowed=false
e-mail marketing allowed=true
on one report. Can I pull the info in from both queries onto one report. If
not can I create a query which will do the same and then create a report
from this?

Any help will be highly appreciated.

Many thanks in advance.

Ady
 
J

John Vinson

What I would really like to do is show the number of:
e-mail marketing allowed=false
e-mail marketing allowed=true

You can do this in a Query: put in two calculated fields

AllowedTrue: IIF([E-mail marketing allowed], 1, 0)

and

AllowedFalse: IIF([E-mail marketing allowed], 0, 1)

Use the Sum (not the Count!) operator on these fields.
 
A

Ady

Hi

This solved the problem!

Thank you very much indeed!

Ady



John Vinson said:
What I would really like to do is show the number of:
e-mail marketing allowed=false
e-mail marketing allowed=true

You can do this in a Query: put in two calculated fields

AllowedTrue: IIF([E-mail marketing allowed], 1, 0)

and

AllowedFalse: IIF([E-mail marketing allowed], 0, 1)

Use the Sum (not the Count!) operator on these fields.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top