Report with two groupings (2 Viewers)

access2010

Registered User.
Local time
Today, 07:18
Joined
Dec 26, 2009
Messages
1,054
Can we print one MsAccess 2003 report with two criteria’s?

Start the report by Currency if Trade is “PURCHASED”

Continue report by Currency if Trade is “WATCH” and investigation is “YES”

We have tried many combination reports and would appreciate your suggestion. Otherwise we will continue to print 2 reports

Thank you, Crystal.
 

Attachments

This is a query issue. Create a calculated field in the query to put your records into groups. Then group by that field in the report.

However, your logic isn't complete. You've left out one possibility--Trade=Watch and Investigation=No. You will need to accomodate that in your calculated field, or eliminate it from the query all together.
 
since investigation is a yes/no field, and False (No) = 0, you could do this for criteria:

(Trade = "PURCHASED") OR (Trade = "WATCH" AND investigation <> 0)

In the report design, you can sort and group by Trade, then sort by whatever else

by the way, "Currency" is a bad field name since it is a reserved word.

here is a link to a list of "bad words" by Allen Browne which is the best list, imo, for words and phrases that should not be used for names. There are more than 2500 terms you shouldn't use for names.

There is a helpful "letter-picker" jump list at the top of the page so you can immediately start looking at what starts with a specified letter

Problem names and reserved words in Access by Allen Browne

On this link, you will also find a Database Issue Checker Utility you can download (also free) to check any existing Access database for violation of rules.

there are several tests you can run. Initially, perhaps only check:

Bad name
Bad characters
No primary key
Record too wide

and then once those things are fixed, you may want to check other issues. This is a great utility! If you haven't explored Allen Browne's site, I encourage you to do so ...
 

Users who are viewing this thread

Back
Top Bottom